DEV Community

Discussion on: 2 Ways to Merge Arrays in JavaScript

Collapse
 
anortef profile image
Adrián Norte

I very much prefer the [].concat way because it's extremely obvious what is going on.

Collapse
 
samanthaming profile image
Samantha Ming

I learned that syntax from Object.assign. I just notice how much more clear it is with it. Glad you think so too 😁