For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /reference/predicate/isEmptyObject.md.

isEmptyObject es-toolkit

Checks if a plain object has no properties ({}).

const result = isEmptyObject(value);

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.

import { isEmptyObject } from 'es-toolkit';

// Plain objects with no properties
isEmptyObject({}); // true
isEmptyObject(new Object()); // true
isEmptyObject(Object.create(null)); // true

// Objects with properties
isEmptyObject({ a: 1 }); // false
isEmptyObject({ key: 'value' }); // false

// Non-plain object types
isEmptyObject([]); // false (array)
isEmptyObject(null); // false
isEmptyObject(new Map()); // false
isEmptyObject(new Set()); // false

Parameters

valueunknownrequired

The value to check.

Returns

Returns true if it's a plain object with no properties, false otherwise.

value is Record<PropertyKey, never>
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.