Skip to content

notNullish

描述

检查值是否不为 null 或 undefined。

示例

ts
import { notNullish } from '@base-web-kits/base-tools-vue';

if (notNullish(value)) {
  console.log(value);
}
```来源

[VueUse](https://vueuse.org/functions/notNullish/)