es-toolkit
Version:
A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.
16 lines (14 loc) • 477 B
text/typescript
/**
* Checks if a value is an empty plain object.
*
* @param {unknown} value - The value to check.
* @returns {value is Record<PropertyKey, never>} - True if the value is an empty plain object, otherwise false.
*
* @example
* isEmptyObject({}); // true
* isEmptyObject({ a: 1 }); // false
* isEmptyObject([]); // false
* isEmptyObject(null); // false
*/
declare function isEmptyObject(value: unknown): value is Record<PropertyKey, never>;
export { isEmptyObject };