ES2015 Number.isNaN() ponyfill
Number.isNaN()
$ npm install --save number-is-nan
var numberIsNan = require('number-is-nan'); numberIsNan(NaN); //=> true numberIsNan('unicorn'); //=> false
MIT © Sindre Sorhus