DEV Community

Discussion on: 2 Uses of concat method when working with arrays in JavaScript

Collapse
 
kritikapattalam profile image
Kritika Pattalam Bharathkumar

100% agree with you. Using Array.prototyoe.flat is the most efficient way, but the post was more about what concat is possible of doing.
Thanks for adding this, its helpful for others reading that concat is not the only way to flatten arrays.