https://github.com/ioedeveloper/flattenarray
Flatten Array ES6
https://github.com/ioedeveloper/flattenarray
Last synced: about 2 months ago
JSON representation
Flatten Array ES6
- Host: GitHub
- URL: https://github.com/ioedeveloper/flattenarray
- Owner: ioedeveloper
- License: mit
- Created: 2018-09-11T14:32:27.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-09-18T13:24:51.000Z (over 6 years ago)
- Last Synced: 2025-03-11T10:50:12.105Z (2 months ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: license.txt
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);
```