isEmptyObject es-toolkit
Checks if a plain object has no properties ({}).
Usage
isEmptyObject(value)
Use isEmptyObject when you want to check if a plain object has no properties like {}. Returns false for other object types like arrays, Map, or Set.
Parameters
valueunknownrequired
The value to check.
Returns
Returns true if it's a plain object with no properties, 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.