Determines if a value is not a value


006.6.32 years ago5 years agoMinified + gzip package size for @unction/isnil in KB



Tests Stability Dependencies

A => boolean

Determines if a value is not a value.

isNil(null) // true
isNil(undefined) // true
isNil(0) // false
isNil("") // false
isNil([]) // false
isNil({}) // false

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.