Check if a number is negative zero
JavaScript
Latest commit 960d7f1 Nov 15, 2016 @sindresorhus 2.0.0

readme.md

negative-zero Build Status

Check if a number is negative zero

Install

$ npm install --save negative-zero

Usage

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

negativeZero(-0);
//=> true

negativeZero(0);
//=> false

negativeZero(+0);
//=> false

Related

License

MIT © Sindre Sorhus