isPlainObject
isPlainObject(
value):value is Record<string, unknown>
Determines if a value is a plain object (i.e., an object literal or created via Object.create(null)).
Parameters
Section titled “Parameters”unknown
The value to inspect.
Returns
Section titled “Returns”value is Record<string, unknown>
true if value is a non-null object whose prototype is Object.prototype or null.