Assuming I have an array that has a size of N (where N > 0), is there a more efficient way of prepending to the array that would not require O(N
I have some fresh tests of different methods of prepending. For small arrays (<1000 elems) the leader is for cycle coupled with a push method. For huge arrays, Unshift method becomes the leader.
But this situation is actual only for Chrome browser. In Firefox unshift has an awesome optimization and is faster in all cases.
ES6 spread is 100+ times slower in all browsers.
https://jsbench.me/cgjfc79bgx/1