UNPKG

es-toolkit

Version:

A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.

15 lines 364 B
//#region src/compat/predicate/isNull.d.ts /** * Checks if `value` is `null`. * * @param value - The value to check. * @returns 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; //#endregion export { isNull };