@zstings/utils
Version:
javascript、typescript 工具函数库 文档地址 [utils 文档](https://zstings.github.io/utils/)
17 lines (16 loc) • 346 B
TypeScript
/**
* 是否是null|undefined
* @param value 任意值
* @return true | false
* @category 工具Util
* @example
* ```ts
* isNullOrUndefined(null) // => true
* isNullOrUndefined(undefined) // => true
* ```
* @example
* ```ts
* isNullOrUndefined(2) // => false
* ```
*/
export default function isNullOrUndefined(value: any): boolean;