# array-flatten

> Flatten nested arrays

Latest version **3.0.0** (published 2019-11-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install array-flatten
pnpm add array-flatten
yarn add array-flatten
bun add array-flatten
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2019-11-21 |
| First published | 2014-03-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 19.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 87 |
| Author | Blake Embrey |
| Maintainers | blakeembrey |
| Keywords | array, flatten, arguments, depth, fast, for |

## Links

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

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 3.0.0 (latest) — 2019-11-21
- 2.1.2 — 2018-12-03
- 2.1.1 — 2017-01-14
- 2.1.0 — 2016-04-29
- 2.0.0 — 2015-11-16
- 1.1.1 — 2015-07-09
- 1.1.0 — 2015-05-09
- 1.0.2 — 2015-01-13
- 1.0.1 — 2015-01-12
- 1.0.0 — 2014-08-17
- 0.0.3 — 2014-08-17
- 0.0.2 — 2014-03-16

## README

# Array Flatten

[![NPM version][npm-image]][npm-url]
[![NPM downloads][downloads-image]][downloads-url]
[![Build status][travis-image]][travis-url]
[![Test coverage][coveralls-image]][coveralls-url]
[![Bundle size][bundlephobia-image]][bundlephobia-url]

> Flatten nested arrays.

## Installation

```
npm install array-flatten --save
```

## Usage

```js
import { flatten } from "array-flatten";

flatten([1, [2, [3, [4, [5], 6], 7], 8], 9]);
//=> [1, 2, 3, 4, 5, 6, 7, 8, 9]

(function() {
  flatten(arguments); //=> [1, 2, 3]
})(1, [2, 3]);
```

## License

MIT

[npm-image]: https://img.shields.io/npm/v/array-flatten.svg?style=flat
[npm-url]: https://npmjs.org/package/array-flatten
[downloads-image]: https://img.shields.io/npm/dm/array-flatten.svg?style=flat
[downloads-url]: https://npmjs.org/package/array-flatten
[travis-image]: https://img.shields.io/travis/blakeembrey/array-flatten.svg?style=flat
[travis-url]: https://travis-ci.org/blakeembrey/array-flatten
[coveralls-image]: https://img.shields.io/coveralls/blakeembrey/array-flatten.svg?style=flat
[coveralls-url]: https://coveralls.io/r/blakeembrey/array-flatten?branch=master
[bundlephobia-image]: https://img.shields.io/bundlephobia/minzip/array-flatten.svg
[bundlephobia-url]: https://bundlephobia.com/result?p=array-flatten

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