Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

negative-zero

sindresorhus7.1kMITdeprecated4.0.0TypeScript support: included

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

Check if a number is negative zero

number, is, check, detect, negative, zero

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