# is-binary-array

> The fastest way to check if an array contains binary digits only

Latest version **1.0.1** (published 2018-04-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install is-binary-array
pnpm add is-binary-array
yarn add is-binary-array
bun add is-binary-array
```

## 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.1 |
| Published | 2018-04-10 |
| First published | 2018-04-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4 |
| Dependencies | 0 |
| Unpacked size | 2.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | JeffMinsungKim |
| Maintainers | jeffminsungkim |
| Keywords | check, array, contain, binary, bit, one, zero |

## Links

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

## Recent versions

- 1.0.1 (latest) — 2018-04-10
- 1.0.0 — 2018-04-10

## README

# is-binary-array [![Build Status]][Travis URL] [![Node Version Required][Node Version]][Node URL]

> The fastest way to check if an array contains binary digits only


## Install

```
$ npm install is-binary-array
```


## Usage

```js
const isBinaryArray = require('is-binary-array');

isBinaryArray([0]);
//=> true

isBinaryArray([0, 1, 1, 0]);
//=> true

isBinaryArray([0, 1, 1, 8]);
//=> false

isBinaryArray([100]);
//=> false

isBinaryArray([-1, 0, 1]);
//=> false

isBinaryArray(123);
//=> 'Expected an array, got number'
```

## License

MIT © [JeffMinsungKim](https://jeffminsungkim.com)

[Build Status]: https://travis-ci.org/jeffminsungkim/is-binary-array.svg?branch=master
[Travis URL]: https://travis-ci.org/jeffminsungkim/is-binary-array
[Node Version]: https://img.shields.io/node/v/string-left-number-right.svg?label=works%20on%20node
[Node URL]: https://www.npmjs.com/package/string-left-number-right

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