isPlainObject
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