Big update!Announcing Socket for GitHub 1.0. Learn more
Socket
BlogLoveFAQ
Install
Log in

is-negative-zero

Package Overview
Dependencies
0
Maintainers
1
Versions
7
Issues
File Explorer

Advanced tools

is-negative-zero

Is this value negative zero? === will lie to you

    2.0.2latest

Version published
Maintainers
1
Weekly downloads
25,135,951
increased by0.33%

Weekly downloads

Changelog

Source

v2.0.2 - 2021-12-10

Commits

Readme

Source

is-negative-zero Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

Is this value negative zero? === will lie to you.

Example

var isNegativeZero = require('is-negative-zero'); var assert = require('assert'); assert.notOk(isNegativeZero(undefined)); assert.notOk(isNegativeZero(null)); assert.notOk(isNegativeZero(false)); assert.notOk(isNegativeZero(true)); assert.notOk(isNegativeZero(0)); assert.notOk(isNegativeZero(42)); assert.notOk(isNegativeZero(Infinity)); assert.notOk(isNegativeZero(-Infinity)); assert.notOk(isNegativeZero(NaN)); assert.notOk(isNegativeZero('foo')); assert.notOk(isNegativeZero(function () {})); assert.notOk(isNegativeZero([])); assert.notOk(isNegativeZero({})); assert.ok(isNegativeZero(-0));

Tests

Simply clone the repo, npm install, and run npm test

Keywords

FAQs

What is is-negative-zero?

Is this value negative zero? === will lie to you

Is is-negative-zero popular?

The npm package is-negative-zero receives a total of 23,909,303 weekly downloads. As such, is-negative-zero popularity was classified as popular.

Is is-negative-zero well maintained?

We found that is-negative-zero demonstrated a healthy version release cadence and project activity. It has 1 open source maintainer collaborating on the project.

Last updated on 10 Dec 2021
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc