mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 07:47:49 +00:00
Use array.pop() instead of array.length-- in _.zipWith.
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user