This package has been deprecated

Author message:

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

negative-zero
TypeScript icon, indicating that this package has built-in type declarations

4.0.0 • Public • Published

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

License

MIT © Sindre Sorhus

Package Sidebar

Install

npm i negative-zero

Weekly Downloads

563

Version

4.0.0

License

MIT

Unpacked Size

2.6 kB

Total Files

5

Last publish

Collaborators

  • sindresorhus