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
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.