Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

number-is-nan

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

number-is-nan - npm Package Compare versions

Comparing version 1.0.1 to 2.0.0

5

index.js
'use strict';
module.exports = Number.isNaN || function (x) {
return x !== x;
module.exports = function (value) {
return typeof value === 'number' && value !== value;
};

67

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc