mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 17:37:50 +00:00
Optimize _.partial and _.partialRight.
This commit is contained in:
4
dist/lodash.underscore.js
vendored
4
dist/lodash.underscore.js
vendored
@@ -402,7 +402,7 @@
|
||||
// `Function#bind` spec
|
||||
// http://es5.github.io/#x15.3.4.5
|
||||
if (partialArgs) {
|
||||
var args = partialArgs.slice();
|
||||
var args = slice(partialArgs);
|
||||
push.apply(args, arguments);
|
||||
}
|
||||
// mimic the constructor's `return` behavior
|
||||
@@ -504,7 +504,7 @@
|
||||
function bound() {
|
||||
var thisBinding = isBind ? thisArg : this;
|
||||
if (partialArgs) {
|
||||
var args = partialArgs.slice();
|
||||
var args = slice(partialArgs);
|
||||
push.apply(args, arguments);
|
||||
}
|
||||
if (partialRightArgs || isCurry) {
|
||||
|
||||
Reference in New Issue
Block a user