deepflatarray

1.0.1 • Public • Published

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' ]


Package Sidebar

Install

npm i deepflatarray

Weekly Downloads

1

Version

1.0.1

License

ISC

Unpacked Size

1.35 kB

Total Files

3

Last publish

Collaborators

  • babar581