isPlainObject(Object.create({})); //=> true
isPlainObject(Object.create(Object.prototype)); //=> true
isPlainObject({foo: 'bar'}); //=> true
isPlainObject({}); //=> true
isPlainObject(1); //=> false
isPlainObject(['foo', 'bar']); //=> false
isPlainObject([]); //=> false
isPlainObject(new Foo); //=> false
isPlainObject(null); //=> false
isPlainObject(Object.create(null)); //=> false
Returns
trueif this is a plain object, which is defined by a type created by theObjectconstructor. Returnsfalseotherwise.