a-plain-obj
v1.5.5
Published
Is it a plain object?
Downloads
20
Readme
Getting Started
npm install a-plain-obj
Usage
import aPlainObj from 'a-plain-obj'
aPlainObj({})
// true
Overview
// true
aPlainObj(Object.create({}))
aPlainObj(Object.create(Object.prototype))
aPlainObj({ foo: 'bar' })
aPlainObj({})
aPlainObj(Object.create(null))
// false
function Foo() { this.abc = {} }
aPlainObj(/foo/)
aPlainObj(function () { })
aPlainObj(1)
aPlainObj(['foo', 'bar'])
aPlainObj([])
aPlainObj(new Foo)
aPlainObj(null)
aPlainObj(undefined)