UNPKG

@foxglove/ros1

Version:

Standalone TypeScript implementation of the ROS 1 (Robot Operating System) protocol with a pluggable transport layer

17 lines 774 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isPlainObject = isPlainObject; exports.isEmptyPlainObject = isEmptyPlainObject; // Returns true if an object was created by the Object constructor, Object.create(null), or {}. function isPlainObject(o) { const m = o; // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition return m != undefined && (m.constructor === Object || m.constructor == undefined); } // Returns true if an object was created by the Object constructor, Object.create(null), or {}, and // the object does not contain any enumerable keys. function isEmptyPlainObject(o) { const m = o; return isPlainObject(m) && Object.keys(m).length === 0; } //# sourceMappingURL=objectTests.js.map