ES2015
Number.isNaN()
ponyfill
$ npm install --save number-is-nan
var numberIsNan = require('number-is-nan');
numberIsNan(NaN);
//=> true
numberIsNan('unicorn');
//=> false
MIT © Sindre Sorhus
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.