Skip to content
On this page

isNull

提供一个简便的方式来判断一个值是否为 null。

引入方式

ESM

javascript
import { isNull } from "tool-assistant;

示例

javascript
// 引入 isNull 函数
import { isNull } from "tool-assistant";

// 定义一个变量
const value = null;

// 使用 isNull 函数判断值是否为 null
const result = isNull(value);

// 打印结果
console.log(result); // 输出 true

Released under the MIT License.