Last change
on this file since eed0bf8 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
559 bytes
|
Rev | Line | |
---|
[6a3a178] | 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 |
|
---|
| 3 | > ES2015 [`Number.isNaN()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isNaN) [ponyfill](https://ponyfill.com)
|
---|
| 4 |
|
---|
| 5 |
|
---|
| 6 | ## Install
|
---|
| 7 |
|
---|
| 8 | ```
|
---|
| 9 | $ npm install --save number-is-nan
|
---|
| 10 | ```
|
---|
| 11 |
|
---|
| 12 |
|
---|
| 13 | ## Usage
|
---|
| 14 |
|
---|
| 15 | ```js
|
---|
| 16 | var numberIsNan = require('number-is-nan');
|
---|
| 17 |
|
---|
| 18 | numberIsNan(NaN);
|
---|
| 19 | //=> true
|
---|
| 20 |
|
---|
| 21 | numberIsNan('unicorn');
|
---|
| 22 | //=> false
|
---|
| 23 | ```
|
---|
| 24 |
|
---|
| 25 |
|
---|
| 26 | ## License
|
---|
| 27 |
|
---|
| 28 | MIT © [Sindre Sorhus](http://sindresorhus.com)
|
---|
Note:
See
TracBrowser
for help on using the repository browser.