inspect-js

inspect-js/is-negative-zero

Is this value negative zero? === will lie to you.

JavaScript
18
4
MIT License

This is a tiny JavaScript utility library that provides a single function to detect if a value is negative zero (`-0`), which is a special case where the strict equality operator (`===`) can't distinguish it from positive zero. It's intended for developers working on low-level numeric operations or testing edge cases in JavaScript environments where negative zero might affect calculations or comparisons.

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies of inspect-js/is-negative-zero

Account's avatar
My shareable eslint config
Account's avatar
TypeScript definitions for tape
Account's avatar
Use `npx aud` instead of `npm audit`, whether you have a lockfile or not!
Account's avatar
Command line tool for generating a changelog from git tags and commit history
Account's avatar
Detect if we were run as a result of `npm publish`
Account's avatar
Command line tool for creating or updating a .npmignore file based on .gitignore.
Account's avatar
the Istanbul command line interface
Account's avatar
Ensure that when you `npm publish`, the "latest" tag is only set for the truly latest version.
Account's avatar
tap-producing test harness for node and browsers
Account's avatar
TypeScript is a language for application scale JavaScript development

Support the repos that depend on this repository

Top contributors

ljharb's profile
ljharb
111 contributions
mathiasbynens's profile
mathiasbynens
1 contributions
philihp's profile
philihp
1 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet