is-plain-object
is-plain-object copied to clipboard
The description below is wrong in README doc file.
the wrong edition
true when created by the Object constructor, or Object.create(null).
...
isPlainObject(null);
//=> true
false when not created by the Object constructor.
...
isPlainObject(Object.create(null));
//=> false
the correct edition
true when created by the Object constructor, or Object.create(null).
...
isPlainObject(Object.create(null));
//=> true
false when not created by the Object constructor.
...
isPlainObject(null);
//=> false
Hi, could you send PR?