es-toolkit
Version:
A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.
15 lines (13 loc) • 332 B
text/typescript
/**
* Checks if `value` is `null`.
*
* @param {any} value - The value to check.
* @returns {value is null} Returns `true` if `value` is `null`, else `false`.
*
* @example
* isNull(null); // true
* isNull(undefined); // false
* isNull(0); // false
*/
declare function isNull(value: any): value is null;
export { isNull };