is-plain-object icon indicating copy to clipboard operation
is-plain-object copied to clipboard

The description below is wrong in README doc file.

Open koolc opened this issue 3 years ago • 1 comments

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

koolc avatar Feb 27 '21 03:02 koolc

Hi, could you send PR?

TrySound avatar Feb 27 '21 07:02 TrySound