1.1.16 • Published 7 months ago
@swenkerorg/adipisci-quod v1.1.16
@swenkerorg/adipisci-quod
Is this value negative zero? === will lie to you.
Example
var isNegativeZero = require('@swenkerorg/adipisci-quod');
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
1.1.16
7 months ago
1.1.15
7 months ago
1.1.14
7 months ago
1.1.13
7 months ago
1.1.12
7 months ago
1.1.11
7 months ago
1.1.10
7 months ago
1.1.9
7 months ago
1.1.8
8 months ago
1.1.7
8 months ago
1.1.6
8 months ago
1.0.6
8 months ago
1.0.5
8 months ago
1.0.4
8 months ago
1.0.3
8 months ago
1.0.2
8 months ago
1.0.1
8 months ago
1.0.0
8 months ago