number-is-nan
Advanced tools
Comparing version 1.0.1 to 2.0.0
'use strict'; | ||
module.exports = Number.isNaN || function (x) { | ||
return x !== x; | ||
module.exports = function (value) { | ||
return typeof value === 'number' && value !== value; | ||
}; |
{ | ||
"name": "number-is-nan", | ||
"version": "1.0.1", | ||
"description": "ES2015 Number.isNaN() ponyfill", | ||
"license": "MIT", | ||
"repository": "sindresorhus/number-is-nan", | ||
"author": { | ||
"name": "Sindre Sorhus", | ||
"email": "sindresorhus@gmail.com", | ||
"url": "sindresorhus.com" | ||
}, | ||
"engines": { | ||
"node": ">=0.10.0" | ||
}, | ||
"scripts": { | ||
"test": "ava" | ||
}, | ||
"files": [ | ||
"index.js" | ||
], | ||
"keywords": [ | ||
"es2015", | ||
"ecmascript", | ||
"ponyfill", | ||
"polyfill", | ||
"shim", | ||
"number", | ||
"is", | ||
"nan", | ||
"not" | ||
], | ||
"devDependencies": { | ||
"ava": "*" | ||
} | ||
"name": "number-is-nan", | ||
"version": "2.0.0", | ||
"description": "ES2015 `Number.isNaN()` ponyfill", | ||
"license": "MIT", | ||
"repository": "sindresorhus/number-is-nan", | ||
"funding": "https://github.com/sponsors/sindresorhus", | ||
"author": { | ||
"name": "Sindre Sorhus", | ||
"email": "sindresorhus@gmail.com", | ||
"url": "sindresorhus.com" | ||
}, | ||
"engines": { | ||
"node": ">=0.10.0" | ||
}, | ||
"scripts": { | ||
"test": "ava" | ||
}, | ||
"files": [ | ||
"index.js" | ||
], | ||
"keywords": [ | ||
"es2015", | ||
"ecmascript", | ||
"ponyfill", | ||
"polyfill", | ||
"shim", | ||
"number", | ||
"is", | ||
"nan", | ||
"not" | ||
], | ||
"devDependencies": { | ||
"ava": "^3.2.0" | ||
} | ||
} |
@@ -5,14 +5,12 @@ # number-is-nan [![Build Status](https://travis-ci.org/sindresorhus/number-is-nan.svg?branch=master)](https://travis-ci.org/sindresorhus/number-is-nan) | ||
## Install | ||
``` | ||
$ npm install --save number-is-nan | ||
$ npm install number-is-nan | ||
``` | ||
## Usage | ||
```js | ||
var numberIsNan = require('number-is-nan'); | ||
const numberIsNan = require('number-is-nan'); | ||
@@ -26,5 +24,12 @@ numberIsNan(NaN); | ||
--- | ||
## License | ||
MIT © [Sindre Sorhus](http://sindresorhus.com) | ||
<div align="center"> | ||
<b> | ||
<a href="https://tidelift.com/subscription/pkg/npm-number-is-nan?utm_source=npm-number-is-nan&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a> | ||
</b> | ||
<br> | ||
<sub> | ||
Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies. | ||
</sub> | ||
</div> |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2750
34