Skip to content

isPlainObject

Determine if a value is a plain object

185 bytes

Usage

Pass in a value and get a boolean telling you if the value is a plain object.

import * as _ from 'radashi'
_.isPlainObject({}) // => true
_.isPlainObject(Object.create(null)) // => true
_.isPlainObject([]) // => false
_.isPlainObject(null) // => false
_.isPlainObject(new Date()) // => false