es-toolkit
Version:
A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.
16 lines • 481 B
TypeScript
//#region src/predicate/isEmptyObject.d.ts
/**
* Checks if a value is an empty plain object.
*
* @param value - The value to check.
* @returns 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>;
//#endregion
export { isEmptyObject };