Check if a number is positive zero
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.editorconfig ES2015ify and use Object.is() Nov 15, 2016
.gitattributes
.gitignore init May 20, 2015
.travis.yml
index.js
license init May 20, 2015
package.json 2.0.0 Nov 15, 2016
readme.md
test.js ES2015ify and use Object.is() Nov 15, 2016

readme.md

positive-zero Build Status

Check if a number is positive zero

Install

$ npm install --save positive-zero

Usage

const positiveZero = require('positive-zero');

positiveZero(0);
//=> true

positiveZero(+0);
//=> true

positiveZero(-0);
//=> false

Related

License

MIT © Sindre Sorhus