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 import _
_ from 'radashi'
import _
_.function isPlainObject(value: any): value is objectexport isPlainObject
Return true if the given value is a plain object.
isPlainObject({}) // => trueimport _
_.function isPlainObject(value: any): value is objectexport isPlainObject
Return true if the given value is a plain object.
isPlainObject(var Object: ObjectConstructor
Provides functionality common to all JavaScript objects.
Object.ObjectConstructor.create(o: object | null): any (+1 overload)
Creates an object that has the specified prototype or that has null prototype.
create(null)) // => true
import _
_.function isPlainObject(value: any): value is objectexport isPlainObject
Return true if the given value is a plain object.
isPlainObject([]) // => falseimport _
_.function isPlainObject(value: any): value is objectexport isPlainObject
Return true if the given value is a plain object.
isPlainObject(null) // => falseimport _
_.function isPlainObject(value: any): value is objectexport isPlainObject
Return true if the given value is a plain object.
isPlainObject(new var Date: DateConstructornew () => Date (+3 overloads)
Date()) // => false