Skip to Content
utilsisPlainObject

isPlainObject

See source on Github

Checks if a given value is a plain object (POJO).

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

Example

isPlainObject({}) // true isPlainObject(new Date()) // false isPlainObject([]) // false

See