Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
same-value-zero-x
Advanced tools
ES6-compliant shim for SameValueZero.
See: 7.2.10 SameValueZero(x, y)
Version: 1.3.2
Author: Xotic750 Xotic750@gmail.com
License: MIT
Copyright: Xotic750
module.exports(x, y)
⇒ boolean
⏏This method determines whether two values are the same value.
SameValueZero differs from SameValue (Object.is
) only in its treatment
of +0 and -0.
Kind: Exported function
Returns: boolean
- A Boolean indicating whether or not the two arguments
are the same value.
Param | Type | Description |
---|---|---|
x | * | The first value to compare. |
y | * | The second value to compare. |
Example
var sameValueZero = require('same-value-zero-x');
sameValueZero(0, 0); // true
sameValueZero(-0, -0); // true
sameValueZero(0, -0); // true
sameValueZero(NaN, NaN); //true
sameValueZero(Infinity, Infinity); // true
sameValueZero(-Infinity, -Infinity); // true
FAQs
ES6-compliant shim for SameValueZero.
The npm package same-value-zero-x receives a total of 488 weekly downloads. As such, same-value-zero-x popularity was classified as not popular.
We found that same-value-zero-x demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.