DEV Community

Discussion on: Javascript Array Methods. All you really need to know.

Collapse
 
walterego profile image
Walter Miani

I'd rather do as: var array3 = [...array1, ...array2] instead of using concat. I'm just more used to the '...' operator since it's also useful with objects.