loading...

re: Javascript Array.push is 945x faster than Array.concat 🤯🤔 VIEW POST

TOP OF THREAD FULL DISCUSSION
re: You got it wrong in the benchmark. Pushing an array is 1 item change on the array. Pushing [...arr] is different. not x1K faster.
 

It is not obvious that :
.bind(objthis)(arg1,arg2) == .call(objthis,arg1,arg2) == .apply(objthis,[arg1,arg2])

Also, Array.push accepts multiples values : myarray.push(value1,value2,value3)

code of conduct - report abuse