@jacarma/nil
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

@jacarma/nil

Utility functions to easily handle nullable variables

NPM JavaScript Style Guide

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

Readme

Keywords

none

Package Sidebar

Install

npm i @jacarma/nil

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

6.31 kB

Total Files

8

Last publish

Collaborators

  • jacarma