isNullish
Check if the input parameter is a undefined or null.
Added in v0.0.4
Usage
ts
import { isNullish } from 'parsnip-kit'
isNullish(undefined) // true
isNullish(null) // true
isNullish(NaN) // false
isNullish(0) // falseAPI
Arguments
| Arg | Type | Optional | Default | Description |
|---|---|---|---|---|
arg | any | false | undefined | Parameters to check |
Returns
| Type |
|---|
boolean |