UNPKG

codetrix

Version:

A lightweight lodash-style utility library

15 lines (14 loc) 373 B
/** * Checks if a value is considered empty. * Supports strings, arrays, objects, maps, and sets. * * @param value - The value to check. * @returns `true` if the value is empty, `false` otherwise. * * @example * isEmpty(''); // true * isEmpty([]); // true * isEmpty({}); // true * isEmpty([1]); // false */ export declare function isEmpty(value: any): boolean;