isNullish
パラメーターが undefined
または null
かどうかを確認します。
Added in v0.0.4
Usage
ts
import { isNullish } from 'parsnip-kit'
isNullish(undefined) // true
isNullish(null) // true
isNullish(NaN) // false
isNullish(0) // false
API
Arguments
Arg | Type | Optional | Default | Description |
---|---|---|---|---|
arg | any | false | undefined | 検査するパラメーター |
Returns
Type |
---|
boolean |