flattenarrayes6
v1.3.0
Published
A javascript library that flattens a nested array into a single flat array.
Downloads
5
Maintainers
Readme
FLATTEN ARRAY
A javascript library that flattens a nested array into a single flat array.
How To Use
- run
npm install flattenarrayes6
to download and install package. 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);