▲ How To Accelerate the Spread Operator at dmitripavlutin.com▼3 up and 0 down, posted by panzerdp 1936 days ago 5 comments
bruno-c 1933 days ago. link 1 point ▲ ▼Could be interesting to compare it to `array.concat([item])`. I know that Array.prototype.push is generic and can work with several kinds of objects but not sure about `concat`.
panzerdp 1932 days ago. link 1 point ▲ ▼I made a perf test that includes concat too: https://jsperf.com/spread-operator-head-vs-tail/13. Seems like [item].concat(array) is the fastest.