DEV Community

Discussion on: 2 Ways to Merge Arrays in JavaScript

Collapse
 
thomas_graf profile image
Thomas Graf

Just for fun I tried it on jsperf and the first one is way faster. Never thought that. But it's probably just a micro optimization.

jsperf.com/empty-array-conact-vs-p...