Package Exports
- a-plain-obj
Readme
Getting Started
npm install a-plain-obj
Usage
import isPlainObject from 'a-plain-obj'
isPlainObject({})
// true
Overview
// true
isPlainObject(Object.create({}))
isPlainObject(Object.create(Object.prototype))
isPlainObject({ foo: 'bar' })
isPlainObject({})
isPlainObject(Object.create(null))
// false
function Foo() { this.abc = {} }
isPlainObject(/foo/)
isPlainObject(function () { })
isPlainObject(1)
isPlainObject(['foo', 'bar'])
isPlainObject([])
isPlainObject(new Foo)
isPlainObject(null)
isPlainObject(undefined)