UNPKG

@foxglove/ros1

Version:

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

17 lines 759 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isEmptyPlainObject = exports.isPlainObject = void 0; // Returns true if an object was created by the Object constructor, Object.create(null), or {}. function isPlainObject(o) { const m = o; return m != undefined && (m.constructor === Object || m.constructor == undefined); } exports.isPlainObject = isPlainObject; // 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; } exports.isEmptyPlainObject = isEmptyPlainObject; //# sourceMappingURL=objectTests.js.map