Fix perf regression of _.zip.

This commit is contained in:
John-David Dalton
2014-08-17 14:10:47 -07:00
parent 8ff97468cc
commit ee10e17ce7

View File

@@ -4415,7 +4415,13 @@
* // => [['fred', 30, true], ['barney', 40, false]]
*/
function zip() {
return unzip(arguments);
var length = arguments.length,
array = Array(length);
while (length--) {
array[length] = arguments[length];
}
return unzip(array);
}
/**