Home

Awesome

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