You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
559 B

4 years ago
  1. # number-is-nan [![Build Status](https://travis-ci.org/sindresorhus/number-is-nan.svg?branch=master)](https://travis-ci.org/sindresorhus/number-is-nan)
  2. > ES2015 [`Number.isNaN()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isNaN) [ponyfill](https://ponyfill.com)
  3. ## Install
  4. ```
  5. $ npm install --save number-is-nan
  6. ```
  7. ## Usage
  8. ```js
  9. var numberIsNan = require('number-is-nan');
  10. numberIsNan(NaN);
  11. //=> true
  12. numberIsNan('unicorn');
  13. //=> false
  14. ```
  15. ## License
  16. MIT © [Sindre Sorhus](http://sindresorhus.com)