mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 17:07:49 +00:00
Add comments to baseBind use of arguments. [ci skip] [closes #416]
This commit is contained in:
3
dist/lodash.underscore.js
vendored
3
dist/lodash.underscore.js
vendored
@@ -402,6 +402,9 @@
|
||||
// `Function#bind` spec
|
||||
// http://es5.github.io/#x15.3.4.5
|
||||
if (partialArgs) {
|
||||
// avoid `arguments` object deoptimizations by using `slice` instead
|
||||
// of `Array.prototype.slice.call` and not assigning `arguments` to a
|
||||
// variable as a ternary expression
|
||||
var args = slice(partialArgs);
|
||||
push.apply(args, arguments);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user