You got it wrong in the benchmark.
Pushing an array is 1 item change on the array.
Pushing [...arr] is different. not x1K faster.
I'm sorry, not quite sure what you mean. Could you explain which part you are referring to and why it's incorrect?
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)
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.