Radash
  1. Typed
  2. isNonNullish

Basic usage

Pass in a value and get a boolean telling you if the value is not a Nullish.

import { isNonNullish } from 'radash'

isNonNullish(null) // false
isNonNullish(undefined) // false
isNonNullish('') // true
isNonNullish(0) // true
isNonNullish(false) // true
isNonNullish(NaN) // true
isNonNullish([]) // true
isNonNullish({}) // true