# is-zero

> is ±0 ?

Latest version **1.0.0** (published 2017-04-15) · MIT license · 0 weekly downloads

## Install

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

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2017-04-15 |
| First published | 2015-03-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Author | Nao Yonamine |
| Maintainers | mohayonao |

## Links

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

## Recent versions

- 1.0.0 (latest) — 2017-04-15
- 0.1.1 — 2015-03-20
- 0.1.0 — 2015-03-20

## README

# is-zero
[![Build Status](https://img.shields.io/travis/mohayonao/is-zero.svg?style=flat-square)](https://travis-ci.org/mohayonao/is-zero)
[![NPM Version](https://img.shields.io/npm/v/is-zero.svg?style=flat-square)](https://www.npmjs.org/package/is-zero)
[![License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](https://mohayonao.mit-license.org/)
> is ±0 ?

## Installation

```
$ npm install is-zero
```

## API

- `is0.isZero(x: number): boolean`
- `is0.isPositiveZero(x: number): boolean`
- `is0.isNegativeZero(x: number): boolean`

## Example

```js
var is0 = require("is-zero");

console.log(is0.isZero(+0)); // => true
console.log(is0.isZero(-0)); // => true
console.log(is0.isPositiveZero(+0)); // => true
console.log(is0.isPositiveZero(-0)); // => false
console.log(is0.isNegativeZero(+0)); // => false
console.log(is0.isNegativeZero(-0)); // => true
```

## License
MIT

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