Initial commit
This commit is contained in:
commit
78f8d225ee
21173 changed files with 2907774 additions and 0 deletions
8
node_modules/is-plain-obj/index.js
generated
vendored
Normal file
8
node_modules/is-plain-obj/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
export default function isPlainObject(value) {
|
||||
if (typeof value !== 'object' || value === null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
const prototype = Object.getPrototypeOf(value);
|
||||
return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in value) && !(Symbol.iterator in value);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue