nz

negative-zero

Check if a number is negative zero

Showing:

Popularity

Downloads/wk

655

GitHub Stars

63

Maintenance

Last Commit

9mos ago

Contributors

2

Package

Dependencies

0

Size (min+gzip)

0.2KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

Deprecated. Just use Object(number, -0).


negative-zero

Check if a number is negative zero

Install

$ npm install negative-zero

Usage

const negativeZero = require('negative-zero');

negativeZero(-0);
//=> true

negativeZero(0);
//=> false

negativeZero(+0);
//=> false

License

MIT © Sindre Sorhus

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100