Files
NapCatQQ/.pnpm-store/v3/files/5b/2486482969abc8c79b08018a715641bbb1ec9b025003a161728a27d85c1c33974967bc7b803a2b561d91628b654aec9265f2f2a8f068d92497f85f0714cba5
TanTan e311ca3275
Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +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;