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
Related
- positive-zero - Check if a number is positive zero
License
MIT © Sindre Sorhus