1234567891011121314151617181920212223242526 |
- "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.hasOwnProperty('isPrototypeOf');
- }
|