DEV Community

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

Collapse
 
yaalfred profile image
Arturas-Alfredas Lapinskas

concat() method is missed

Collapse
 
walterego profile image
Walter Miani

concat is missing because I never use it. The point was to show what I personally use the most.

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.