# positive-zero

> Check if a number is positive zero

Latest version **4.0.0** (published 2021-05-03) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install positive-zero
pnpm add positive-zero
yarn add positive-zero
bun add positive-zero
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 4.0.0 |
| Published | 2021-05-03 |
| First published | 2015-05-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/positive-zero) |
| Module format | CommonJS |
| Node | >=8 |
| Dependencies | 0 |
| Unpacked size | 2.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Sindre Sorhus |
| Maintainers | sindresorhus |
| Keywords | number, is, check, detect, positive, zero |

## Links

- npm: https://www.npmjs.com/package/positive-zero
- Repository: https://github.com/sindresorhus/positive-zero
- Homepage: https://github.com/sindresorhus/positive-zero#readme
- Issues: https://github.com/sindresorhus/positive-zero/issues
- npm.io page: https://npm.io/package/positive-zero

## Alternatives

- [memory-cache](https://npm.io/package/memory-cache.md) — 795.0K weekly downloads
- [@httptoolkit/proxy-agent](https://npm.io/package/@httptoolkit/proxy-agent.md) — 11.2K weekly downloads
- [express-cache-controller](https://npm.io/package/express-cache-controller.md) — 5.3K weekly downloads
- [http-cache-middleware](https://npm.io/package/http-cache-middleware.md) — 4.5K weekly downloads
- [cache2](https://npm.io/package/cache2.md) — 1.5K weekly downloads

## Recent versions

- 4.0.0 (latest) — 2021-05-03
- 3.0.0 — 2019-04-23
- 2.0.0 — 2016-11-15
- 1.0.0 — 2015-05-20

## README

# positive-zero

> Check if a number is [positive zero](https://en.wikipedia.org/wiki/Signed_zero)

## Install

```
$ npm install positive-zero
```

## Usage

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

positiveZero(0);
//=> true

positiveZero(+0);
//=> true

positiveZero(-0);
//=> false
```

## Related

- [negative-zero](https://github.com/sindresorhus/negative-zero) - Check if a number is negative zero

---
_Source: https://npm.io/package/positive-zero · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
