All Projects → inspect-js → is-negative-zero

inspect-js / is-negative-zero

Licence: MIT license
Is this value negative zero? === will lie to you.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to is-negative-zero

RAK831-Zero
Pi Zero RAK831 Adapter board
Stars: ✭ 98 (+512.5%)
Mutual labels:  zero
is-primitive
Is the typeof value a javascript primitive?
Stars: ✭ 35 (+118.75%)
Mutual labels:  is
Toxiproxy
⏰ 🔥 A TCP proxy to simulate network and system conditions for chaos and resiliency testing
Stars: ✭ 7,529 (+46956.25%)
Mutual labels:  is
zero
📦 A zero config scripts library
Stars: ✭ 17 (+6.25%)
Mutual labels:  zero
is-dotfile
Return true if the file is (or the file path has) a dotfile.
Stars: ✭ 13 (-18.75%)
Mutual labels:  is
is-regex
Is this value a JS regex?
Stars: ✭ 22 (+37.5%)
Mutual labels:  is
Zero
Zero Currency Blockchain Project
Stars: ✭ 19 (+18.75%)
Mutual labels:  zero
matic-docs
The official documentation for all Polygon products.
Stars: ✭ 181 (+1031.25%)
Mutual labels:  zero
js-class-is
Enhances a JavaScript class by adding an is<Class> property to compare types between realms.
Stars: ✭ 17 (+6.25%)
Mutual labels:  is
metrics
IS, FID score Pytorch and TF implementation, TF implementation is a wrapper of the official ones.
Stars: ✭ 91 (+468.75%)
Mutual labels:  is
MMX3-ZeroProject
Mega Man X3 - Base Mod (Zero Project)
Stars: ✭ 22 (+37.5%)
Mutual labels:  zero
abp-ng-zorro
ng-zorro template for asp.net zero
Stars: ✭ 66 (+312.5%)
Mutual labels:  zero
is-symbol
Is this an ES6 Symbol value?
Stars: ✭ 16 (+0%)
Mutual labels:  is
zero
Zero is a web server to simplify web development.
Stars: ✭ 5,835 (+36368.75%)
Mutual labels:  zero
z framework
🔥🔥🔥🔥Z Framework Is PHP Fast Framework
Stars: ✭ 19 (+18.75%)
Mutual labels:  zero
LeelaMasterWeight
Leela Master weight is training from leela zero self-play sgf and human sgf file
Stars: ✭ 49 (+206.25%)
Mutual labels:  zero
dotfiles
Some items in /home/kiedtl/etc
Stars: ✭ 49 (+206.25%)
Mutual labels:  is
zorkzero
Zork Zero: The Revenge of Megaboz, by Steve Meretzky of Infocom (1988)
Stars: ✭ 114 (+612.5%)
Mutual labels:  zero
checkif.js
Javascript check library
Stars: ✭ 30 (+87.5%)
Mutual labels:  is
is-arrow-function
Determine if a function is an ES6 arrow function or not.
Stars: ✭ 20 (+25%)
Mutual labels:  is

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].