Skip to content

Home > robinson > isNull

isNull() function

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

函数“isNull”检查给定值是否为空。

Signature:

typescript
declare function isNull(value: any): boolean;
declare function isNull(value: any): boolean;

Parameters

ParameterTypeDescription
valueany参数“value”的类型为“any”,这意味着它可以接受任何数据类型。

Returns:

boolean

{boolean} 函数 isNull 返回一个布尔值。

JavaScript
 let a =null; isNull(a)// true
 let a =null; isNull(a)// true

Released under the MIT License.