number-is-nan

ES2015 `Number.isNaN()` ponyfill


Keywords
es2015, ecmascript, ponyfill, polyfill, shim, number, is, nan, not
License
MIT
Install
npm install number-is-nan@1.0.0

Documentation

Deprecated as this is now natively available in all modern browsers and Node.js versions.


number-is-nan

ES2015 Number.isNaN() ponyfill

Install

$ npm install number-is-nan

Usage

const numberIsNan = require('number-is-nan');

numberIsNan(NaN);
//=> true

numberIsNan('unicorn');
//=> false

Get professional support for this package with a Tidelift subscription
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.