Skip to content

isNullish

Static Badge

パラメーターが 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

ArgTypeOptionalDefaultDescription
arganyfalseundefined検査するパラメーター

Returns

Type
boolean