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
Parameter | Type | Description |
---|---|---|
value | any | 参数“value”的类型为“any”,这意味着它可以接受任何数据类型。 |
Returns:
boolean
{boolean} 函数 isNull 返回一个布尔值。
JavaScript
let a =null; isNull(a)// true
let a =null; isNull(a)// true