Use array.pop() instead of array.length-- in _.zipWith.

This commit is contained in:
John-David Dalton
2015-10-11 23:29:23 -07:00
parent 6bff374e91
commit 32d6a04107

View File

@@ -6389,7 +6389,7 @@
var length = arrays.length,
iteratee = length > 1 ? arrays[length - 1] : undefined;
iteratee = typeof iteratee == 'function' ? (arrays.length--, iteratee) : undefined;
iteratee = typeof iteratee == 'function' ? (arrays.pop(), iteratee) : undefined;
return unzipWith(arrays, iteratee);
});