# assert-array

> Assert that a value is an array

Latest version **1.0.0** (published 2015-09-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install assert-array
pnpm add assert-array
yarn add assert-array
bun add assert-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.0 |
| Published | 2015-09-06 |
| First published | 2015-09-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Ben Drucker |
| Maintainers | bendrucker |
| Keywords | assert, array |

## Links

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

## Dependencies (1)

- [assert-ok](https://npm.io/package/assert-ok.md) ~1.0.0

## Recent versions

- 1.0.0 (latest) — 2015-09-06

## README

# assert-array [![Build Status](https://travis-ci.org/bendrucker/assert-array.svg?branch=master)](https://travis-ci.org/bendrucker/assert-array)

> Assert that a value is an array


## Install

```
$ npm install --save assert-array
```


## Usage

```js
var assertArray = require('assert-array')

assertArray([])
//=> noop

assertArray('foo')
//=> throw new Error('Expected array, got string')
```


## License

MIT © [Ben Drucker](http://bendrucker.me)

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