isPlainObject
Checks if a value is a plain object.
A plain object is created by {}, new Object(), or Object.create(null).
Returns false for arrays, Date, Map, Set, RegExp, class instances, etc.
Available since v2.0.0
Import
Section titled “Import”Signature
Section titled “Signature”Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
value | unknown | The value to check |
Returns
Section titled “Returns”value is Record<string, unknown> — True if value is a plain object
