is-nil-x

2.1.1 • Public • Published

Travis status Dependency status devDependency status npm version jsDelivr hits bettercodehub score Coverage Status

is-nil-x

Checks if value is null or undefined.

module.exports(value)boolean

Checks if value is null or undefined.

Kind: Exported function
Returns: boolean - Returns true if value is nullish, else false.

Param Type Description
value * The value to check.

Example

import isNil from 'is-nil-x';
 
console.log(isNil(null)); // => true
console.log(isNil(void 0)); // => true
console.log(isNil(NaN)); // => false

Package Sidebar

Install

npm i is-nil-x

Weekly Downloads

5,802

Version

2.1.1

License

MIT

Unpacked Size

29.6 kB

Total Files

11

Last publish

Collaborators

  • xotic750