json-merger
Version:
Merge JSON (or YAML) files and objects with indicators like $import $remove $replace $merge etc
14 lines • 513 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isObject = isObject;
function isObject(value) {
if (typeof value === "object" && value !== null) {
if (typeof Object.getPrototypeOf === "function") {
const proto = Object.getPrototypeOf(value);
return proto === Object.prototype || proto === null;
}
return Object.prototype.toString.call(value) === "[object Object]";
}
return false;
}
//# sourceMappingURL=types.js.map