DEV Community

Discussion on: JavaScript Array Method Cheat Sheet (17 must-know methods) 📄

Collapse
 
yigitt profile image
yigitt

I dont like the concat() syntax.
rest parameter syntax is better;

var newArray = [...arrayOne, ...arrayTwo, ...arrayThree]

Collapse
 
doabledanny profile image
Danny Adams

Yeah, I prefer the rest parameter syntax too 👍