Files
SnowLuma/.pnpm-store/v11/files/5b/2486482969abc8c79b08018a715641bbb1ec9b025003a161728a27d85c1c33974967bc7b803a2b561d91628b654aec9265f2f2a8f068d92497f85f0714cba5
TanTan 2a69b23b47
Dev Build / cleanup (push) Canceled after 0s
Dev Build / typecheck (push) Canceled after 0s
Dev Build / build (linux-arm64, ubuntu-24.04-arm, linux-arm64) (push) Canceled after 0s
Dev Build / build (linux-x64, ubuntu-latest, linux-x64) (push) Canceled after 0s
Dev Build / build (win-x64, windows-latest, win32-x64) (push) Canceled after 0s
Dev Build / dispatch-dev-docker (push) Skipped
docs: 仓库链接指向本镜像仓库
2026-11-13 09:27:07 +08:00

23 lines
528 B
Plaintext

/**
* Check if the value is null or undefineds
*
* 校验是否是 null 或者 undefined
*
* @example
* ```js
* import { isNil } from 'is-what-type';
*
* isNil(null); // true
* isNil(undefined); // true
* isNil({}); // false
* isNil(''); // false
* isNil(0); // false
* isNil(false); // false
* isNil(NaN); // false
* ```
*
* @param value - The value to check
* @returns `true` if the value is null or undefined, `false` otherwise
*/
export declare function isNil(value: unknown): value is null | undefined;