is-negative-zero
Advanced tools
Weekly downloads
Changelog
v2.0.2 - 2021-12-10
ece923d
node/install
instead of node/run
; use codecov
action 3a26f43
2cea0c2
0c0be3e
eslint
, @ljharb/eslint-config
, safe-publish-latest
, tape
a93d16e
b4f425e
7999db3
eslint
, @ljharb/eslint-config
, auto-changelog
, safe-publish-latest
, tape
140e4d9
eslint
, @ljharb/eslint-config
, aud
, tape
23a8b6d
fe92126
50c428e
eslint
, @ljharb/eslint-config
, tape
688155f
prepublishOnly
script for npm 7+ 83171f9
e9823db
Readme
Is this value negative zero? === will lie to you.
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));
Simply clone the repo, npm install
, and run npm test
FAQs
Is this value negative zero? === will lie to you
The npm package is-negative-zero receives a total of 20,653,131 weekly downloads. As such, is-negative-zero popularity was classified as popular.
We found that is-negative-zero 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 installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.