DEV Community

Discussion on: Array.flat() in JavaScript

Collapse
 
mondal10 profile image
Amit Mondal • Edited

Great!
Just wanted to add one more

arr.flat(Infinity); // to flatten the whole array upto it's last depth.

Collapse
 
capscode profile image
capscode

Wow, i didnt know that..
nice add
thank you :)

Collapse
 
capscode profile image
capscode

i am going to add this in this blog itself :)