You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
homestay/minsu/admin/node_modules/is-negative-zero
ytt 2545d38280
代码
8 months ago
..
.github 代码 8 months ago
test 代码 8 months ago
.editorconfig 代码 8 months ago
.eslintrc 代码 8 months ago
.nycrc 代码 8 months ago
CHANGELOG.md 代码 8 months ago
LICENSE 代码 8 months ago
README.md 代码 8 months ago
index.d.ts 代码 8 months ago
index.js 代码 8 months ago
package.json 代码 8 months ago
tsconfig.json 代码 8 months ago

README.md

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