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)
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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)