Skip to Content
utilsisObject

isObject

See source on Github

Checks if a given value is of type object.

  • @param value - The value to check.
  • @returns true if the value is of type object, false otherwise.

Example

isObject({}) // true isObject(new Date()) // true isObject([]) // true isObject(2) // false