@jacarma/nil
v1.0.2
Published
Utility functions to easily handle nullable variables
Downloads
4
Readme
@jacarma/nil
Utility functions to easily handle nullable variables
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