Pass in a value and get a boolean telling you if the value is an instance of Object (or a subclass of Object).
import*as
import _
_from'radashi'
import _
_.
functionisObject(value:unknown):valueisobject
export isObject
Returns true if value is a plain object, a class instance
(excluding built-in classes like Date/RegExp), or an
Object.create(null) result. Objects from other realms are
also supported.
Returns true if value is a plain object, a class instance
(excluding built-in classes like Date/RegExp), or an
Object.create(null) result. Objects from other realms are
also supported.
Returns true if value is a plain object, a class instance
(excluding built-in classes like Date/RegExp), or an
Object.create(null) result. Objects from other realms are
also supported.
Returns true if value is a plain object, a class instance
(excluding built-in classes like Date/RegExp), or an
Object.create(null) result. Objects from other realms are
also supported.
Beware: This function returns false for objects created with Object.create(null). If you want to check if a value is a plain object, use _.isPlainObject instead.