diginext-utils
Version:
README.md
21 lines • 561 B
TypeScript
/**
* Checks if a value is null, undefined, empty string, empty array, or empty object.
* File instances are never considered null.
*
* @param value - The value to check
* @returns True if the value is considered null/empty
*
* @example
* ```ts
* isNull(null); // true
* isNull(undefined); // true
* isNull(''); // true
* isNull([]); // true
* isNull({}); // true
* isNull(0); // false
* isNull('hello'); // false
* isNull([1, 2]); // false
* ```
*/
export declare function isNull(value: unknown): boolean;
//# sourceMappingURL=isNull.d.ts.map