1234567891011121314151617181920212223242526272829303132333435363738 |
- 'use strict';
- Object.defineProperty(exports, '__esModule', { value: true });
- function isObject(o) {
- return Object.prototype.toString.call(o) === '[object Object]';
- }
- function isPlainObject(o) {
- var ctor,prot;
- if (isObject(o) === false) return false;
-
- ctor = o.constructor;
- if (ctor === undefined) return true;
-
- prot = ctor.prototype;
- if (isObject(prot) === false) return false;
-
- if (prot.hasOwnProperty('isPrototypeOf') === false) {
- return false;
- }
-
- return true;
- }
- exports.isPlainObject = isPlainObject;
|