DEV Community

Discussion on: Demystifying Array.prototype.flat

Collapse
 
mebble profile image
Neil Syiemlieh

But what if it's nested arrays all the way down?

Collapse
 
laurieontech profile image
Laurie • Edited

That's what the final example is for :)

arr.flat(Infinity)