JSPM

  • Created
  • Published
  • Downloads 6023
  • Score
    100M100P100Q126372F
  • License MIT

Checks if `value` is `null` or `undefined`.

Package Exports

  • is-nil-x

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (is-nil-x) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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