isPlainObject
Checks if a given value is a plain object (POJO).
- @param
value- The value to check. - @returns
trueif the value is a plain object,falseotherwise.
Example
isPlainObject({}) // true
isPlainObject(new Date()) // false
isPlainObject([]) // false