@techor/is-plain-obj
v3.0.23
Published
Is it a plain object?
Downloads
25
Readme
Getting Started
npm install @techor/is-plain-obj
Usage
import aPlainObj from '@techor/is-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)