mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 18:17:48 +00:00
Use array.pop() instead of array.length-- in _.zipWith.
This commit is contained in:
@@ -6389,7 +6389,7 @@
|
|||||||
var length = arrays.length,
|
var length = arrays.length,
|
||||||
iteratee = length > 1 ? arrays[length - 1] : undefined;
|
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);
|
return unzipWith(arrays, iteratee);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user