UNPKG

diginext-utils

Version:
20 lines 522 B
/** * Checks if a value is empty (null, undefined, empty string, empty array, empty object, or falsy). * * @param value - The value to check * @returns True if the value is empty * * @example * ```ts * isEmpty(null); // true * isEmpty(undefined); // true * isEmpty(''); // true * isEmpty([]); // true * isEmpty({}); // true * isEmpty(false); // true * isEmpty(0); // true * isEmpty('hello'); // false * ``` */ export declare function isEmpty(value: unknown): boolean; //# sourceMappingURL=isEmpty.d.ts.map