Skip to content

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)).

unknown

The value to inspect.

value is Record<string, unknown>

true if value is a non-null object whose prototype is Object.prototype or null.