Shi Ling for Uilicious Posted on May 2, 2019 • Updated on May 6, 2019 • Originally published at uilicious.com TDLR If you are merging arrays with thousands of elements across, you can shave off seconds from the process by using arr1.push(...arr2) instead of arr1 = arr1.concat(arr2). If you really to go faster, you might even want to write your own implementation to merge arrays. Wait a minute... h
![Javascript Array.push is 945x faster than Array.concat 🤯🤔](https://cdn-ak-scissors.b.st-hatena.com/image/square/eedd5b98a3cdff928edac94ada7bde328e3c62b6/height=288;version=1;width=512/https%3A%2F%2Fres.cloudinary.com%2Fpracticaldev%2Fimage%2Ffetch%2Fs--N5Inxc-4--%2Fc_imagga_scale%2Cf_auto%2Cfl_progressive%2Ch_500%2Cq_auto%2Cw_1000%2Fhttps%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F4e0py420bbaa1gmorry9.jpg)