Socket
Socket
Sign inDemoInstall

is-negative-zero

Package Overview
Dependencies
0
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.0 to 0.1.1

3

index.js
"use strict";
module.exports = function isNegativeZero(value) {
return Number(value) === 0 && Infinity / Number(value) < 0;
var number = Number(value);
return number === 0 && (1 / number) === -Infinity;
};
{
"name": "is-negative-zero",
"version": "0.1.0",
"version": "0.1.1",
"description": "Is this value negative zero? === will lie to you",

@@ -5,0 +5,0 @@ "author": "Jordan Harband",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc