Spaces:
Configuration error
Configuration error
|
Download node_modules/is-negative-zero/README.md from W404NET/Telegram-Chat-Bot: direct link, hf CLI and curl.
- Browser
- Download file 2.25 kB
-
https://huggingface.co/spaces/W404NET/Telegram-Chat-Bot/resolve/main/node_modules/is-negative-zero/README.md
- Command line
-
hf download hf://spaces/W404NET/Telegram-Chat-Bot/node_modules/is-negative-zero/README.md
-
curl -L -o README.md https://huggingface.co/spaces/W404NET/Telegram-Chat-Bot/resolve/main/node_modules/is-negative-zero/README.md
2.25 kB
is-negative-zero
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
