mirror of
https://github.com/actions/setup-python.git
synced 2024-12-29 10:50:26 +01:00
28 lines
559 B
Markdown
28 lines
559 B
Markdown
# number-is-nan [![Build Status](https://travis-ci.org/sindresorhus/number-is-nan.svg?branch=master)](https://travis-ci.org/sindresorhus/number-is-nan)
|
|
|
|
> ES2015 [`Number.isNaN()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isNaN) [ponyfill](https://ponyfill.com)
|
|
|
|
|
|
## Install
|
|
|
|
```
|
|
$ npm install --save number-is-nan
|
|
```
|
|
|
|
|
|
## Usage
|
|
|
|
```js
|
|
var numberIsNan = require('number-is-nan');
|
|
|
|
numberIsNan(NaN);
|
|
//=> true
|
|
|
|
numberIsNan('unicorn');
|
|
//=> false
|
|
```
|
|
|
|
|
|
## License
|
|
|
|
MIT © [Sindre Sorhus](http://sindresorhus.com)
|