From 76a99d7c3aef35198403bb3aec5d1e062783516d Mon Sep 17 00:00:00 2001 From: Lchemist Date: Thu, 11 Mar 2021 16:37:54 -0600 Subject: [PATCH] Fix usage example --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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