An open API service indexing awesome lists of open source software.

https://github.com/ioedeveloper/flattenarray

Flatten Array ES6
https://github.com/ioedeveloper/flattenarray

Last synced: about 2 months ago
JSON representation

Flatten Array ES6

Awesome Lists containing this project

README

        

# FLATTEN ARRAY
A javascript library that flattens a nested array into a single flat array.

## How To Use
1. run `npm install flattenarrayes6` to download and install package.
2. ```
const flat = require('flattenarrayes6');
const nested_array = [1,[2,3],[5,[6,7],[8,9]]];
const flattened_array = flat(nested_array);
console.log(flattened_array);
```