1.0.0 • Published 8 years ago
check-negative-zero v1.0.0
check-negative-zero
Micro library to check if a number is Negative Zero.
Installation
npm install --save check-negative-zero
Usage
const checkNegativeZero = require('check-negative-zero');
checkNegativeZero(-0);
// Output true
checkNegativeZero(0);
// Output false
checkNegativeZero(3);
// Output false
Tests
npm run test
Contributing
PR's are most welcome.
In lieu of a formal style guide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.
License
MIT License
1.0.0
8 years ago