Checks whether a value is a non-function object and its prototype is null or Object.prototype.
null
Object.prototype
isPlainObject({ key: "value" }) // trueisPlainObject(JSON.parse("{}")) // trueisPlainObject(Object.create(null)) // trueisPlainObject(new Object()) // true Copy
isPlainObject({ key: "value" }) // trueisPlainObject(JSON.parse("{}")) // trueisPlainObject(Object.create(null)) // trueisPlainObject(new Object()) // true
3.0.0-beta.1
Checks whether a value is a non-function object and its prototype is
nullorObject.prototype.