isObject
Checks if a given value is of type object
.
- @param
value
- The value to check. - @returns
true
if the value is of typeobject
,false
otherwise.
Example
isObject({}) // true
isObject(new Date()) // true
isObject([]) // true
isObject(2) // false