Optimize _.without in IE.

This commit is contained in:
John-David Dalton
2014-03-09 20:58:46 -07:00
parent 818c3d6140
commit 4eaf91c3dc
7 changed files with 29 additions and 29 deletions

View File

@@ -1734,8 +1734,8 @@
* _.without([1, 2, 1, 0, 3, 1, 4], 0, 1);
* // => [2, 3, 4]
*/
function without(array) {
return baseDifference(array, slice(arguments, 1));
function without() {
return baseDifference(arguments[0], slice(arguments, 1));
}
/**