Skip to content

isNullish

Determine if a value is null or undefined

53 bytes

Usage

Pass in a value and get a boolean telling you if the value is null or undefined.

import * as _ from 'radashi'
_.isNullish(null) // => true
_.isNullish(undefined) // => true
_.isNullish('') // => false
_.isNullish([]) // => false
_.isNullish(0) // => false