list-flatten
Flatten an array or array-like list (non-recursive implementation).
Usage
Import list-flatten with your choice of module system:
// orlet flatten = // CommonJS// or // AMD
then use it:
let arr = 334 235367arr = console// output:// [3,3,4,2,3,5,3,6,7]
Todo
- Accept a depth argument.