Some checks failed
Lint / pre-commit Linting (push) Has been cancelled
Deploy js code to an instance of screeps. Some debugging tools are implemented. Reviewed-on: #6 Co-authored-by: Philipp Horstenkamp <philipp@horstenkamp.de> Co-committed-by: Philipp Horstenkamp <philipp@horstenkamp.de>
29 lines
559 B
Markdown
29 lines
559 B
Markdown
# number-is-nan [](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)
|