diff --git a/README.md b/README.md index 5c074ab..9bb13e3 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,8 @@ const { isPlainObject } = require('is-plain-object'); ```js isPlainObject(Object.create({})); //=> true +isPlainObject(Object.create(null)); +//=> true isPlainObject(Object.create(Object.prototype)); //=> true isPlainObject({foo: 'bar'}); @@ -52,8 +54,6 @@ isPlainObject([]); //=> false isPlainObject(new Foo); //=> false -isPlainObject(Object.create(null)); -//=> false ``` ## About