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