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
23 lines
528 B
Plaintext
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;
|