# an-array

> Check if an object is an array or a typed array

Latest version **1.0.0** (published 2014-11-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install an-array
pnpm add an-array
yarn add an-array
bun add an-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 | 2014-11-03 |
| First published | 2014-11-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Hugh Kennedy |
| Maintainers | hughsk |
| Keywords | typed, array, check, class, float32array, instance, is |

## Links

- npm: https://www.npmjs.com/package/an-array
- Repository: https://github.com/hughsk/an-array
- Issues: https://github.com/hughsk/an-array/issues
- npm.io page: https://npm.io/package/an-array

## 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

- 1.0.0 (latest) — 2014-11-03

## README

# an-array
![](http://img.shields.io/badge/stability-stable-green.svg?style=flat)
![](http://img.shields.io/npm/v/an-array.svg?style=flat)
![](http://img.shields.io/npm/dm/an-array.svg?style=flat)
![](http://img.shields.io/npm/l/an-array.svg?style=flat)

Check if an object is an array or a typed array.

## Usage

[![NPM](https://nodei.co/npm/an-array.png)](https://nodei.co/npm/an-array/)

### `is = anArray(array)`

Returns `true` if the object is one of the following:

* `Float32Array`
* `Float64Array`
* `Uint8ClampedArray`
* `Uint8Array`
* `Uint16Array`
* `Uint32Array`
* `Int8Array`
* `Int16Array`
* `Int32Array`
* `Array`

Otherwise, will return `false`.

## License

MIT. See [LICENSE.md](http://github.com/hughsk/an-array/blob/master/LICENSE.md) for details.

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