isPlainObject es-toolkit
Checks if a value is a plain object.
Usage
isPlainObject(value)
Use isPlainObject when you want to check if a value is a plain object. A plain object is an object created with an object literal ({}) or the Object constructor. Class instances, arrays, or other special objects are not plain objects.
It's useful when serializing data or validating configuration objects.
Parameters
valueunknownrequired
The value to check if it's a plain object.
Returns
Returns true if the value is a plain object, false otherwise.
Source: es-toolkit
Re-exported verbatim from es-toolkit. Implementation, edge cases, and performance behavior are owned upstream. This page mirrors the documentation at the pinned version; the linked source is authoritative.