UNPKG

next

Version:

The React Framework

18 lines (17 loc) 544 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getObjectClassLabel = getObjectClassLabel; exports.isPlainObject = isPlainObject; function getObjectClassLabel(value) { return Object.prototype.toString.call(value); } function isPlainObject(value) { if (getObjectClassLabel(value) !== '[object Object]') { return false; } const prototype = Object.getPrototypeOf(value); return prototype === null || prototype === Object.prototype; } //# sourceMappingURL=is-plain-object.js.map