deepflatarray
v1.0.1
Published
Accespts deep nested array and turn it into single array
Downloads
1
Maintainers
Readme
deepFlatArray
It accepts nested array and flat it into single array .
Installation
npm i deepflatarray --save
Then...
let x = [ 'a' , 'b' , 'c' ,'d' , ["e","f","g",["i", "j" , "k" , ["l" , "m " , "n"]] ,"h"] ]
let y = deepFlat(x)
//output
// y = [ 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'i', 'j', 'k', 'l', 'm ', 'n', 'h' ]