/nil

Utility functions to easily handle nullable variables

Primary LanguageJavaScript

@jacarma/nil

Utility functions to easily handle nullable variables

This project is only an example about how to publish JavaScript libraries

NPM JavaScript Style Guide CI Status

Install

npm install --save @jacarma/nil

Usage

nil(value) // true or false
noNil(value) // true or false
coalesce(value1, value2, value3, ...) // returns the first not null value

License

MIT © jacarma