DEV Community

Discussion on: 15 must-know JavaScript array methods in 2020

Collapse
 
vitjaz profile image
Vitaliy • Edited

Why about "flat()" -> "Notice that, this method will go only one level depth."?

On MDN - "The flat() method creates a new array with all sub-array elements concatenated into it recursively up to the specified depth.".