DEV Community

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

kritikapattalam profile image
Kritika Pattalam Bharathkumar Author

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.