# npm-array-flatten

> Receives multilevel nested array as an input and flattens it into one dimensional.

Latest version **1.0.4** (published 2017-01-15) · ISC license · 0 weekly downloads

## Install

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

## 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.4 |
| Published | 2017-01-15 |
| First published | 2017-01-15 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | krishcdbry |
| Maintainers | krishcdbry |
| Keywords | array-flatten, flatten-array, array, flat, one-dimensional, flatten, flat, arrayflat |

## Links

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

## Recent versions

- 1.0.4 (latest) — 2017-01-15
- 1.0.3 — 2017-01-15
- 1.0.2 — 2017-01-15
- 1.0.1 — 2017-01-15
- 1.0.0 — 2017-01-15

## README

# npm-array-flatten
Npm array flatten includes flat, magikflata modules. It Receives multilevel nested array as an input and flattens it into one dimensional.

## Installation

```bash
npm i npm-array-flatten
```

## Usage
```javascript
var arrayFlatten = require('npm-array-flatten');
```

## flat(array)

Receives the nested input array and makes it into single dimensional. 
```javascript
 var inputArray = [1,2,3,4,[5,[6,12,21,[1,2,3],5],9],7,8,9];
 arrayFlatten.flat(inputArray)  
 //  [1,2,3,4,5,6,12,21,1,2,3,5,9,7,8,9]
```


## Demo
Demo @[array-flatten](https://tonicdev.com/npm/npm-array-flatten)
| https://tonicdev.com/npm/npm-array-flatten

## Author
Krishcdbry [krishcdbry@gmail.com]

## Licence
MIT @[krishcdbry](krishcdbry.com)

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