You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That's a nice thought, but I'm afraid that pulling off a reference to Function#call isn't going to get you the original method -- it's just going to get you a broken version of call.
Well, I was thinking
sliceCall = _.bind(slice.call, slice)
but I guess that doesn't save anything since .apply still has to be run in the func returned by .bind. :-/
You have a bunch of aliases of the form:
var slice = Array.prototype.slice
In most, if not all, cases, you then use that as slice.call.
If it's truly done for performance, your aliases should be to
var slicecall = Array.prototype.slice.call
That'll save one more attr lookup in a ton of loops.
The text was updated successfully, but these errors were encountered: