4.0.0 • Published 5 years ago
negative-zero v4.0.0
Deprecated. Just use Object(number, -0).
negative-zero
Check if a number is negative zero
Install
$ npm install negative-zeroUsage
const negativeZero = require('negative-zero');
negativeZero(-0);
//=> true
negativeZero(0);
//=> false
negativeZero(+0);
//=> falseRelated
- positive-zero - Check if a number is positive zero
License
MIT © Sindre Sorhus