Change arguments passed to _.zipWith and _.unzipWith.

This commit is contained in:
John-David Dalton
2016-01-06 23:26:02 -08:00
parent 52754415e0
commit 81b1d6e451
2 changed files with 25 additions and 8 deletions

View File

@@ -6790,7 +6790,7 @@
return result;
}
return arrayMap(result, function(group) {
return arrayReduce(group, iteratee, undefined, true);
return apply(iteratee, undefined, group);
});
}
@@ -6947,7 +6947,9 @@
* @returns {Array} Returns the new array of grouped elements.
* @example
*
* _.zipWith([1, 2], [10, 20], [100, 200], _.add);
* _.zipWith([1, 2], [10, 20], [100, 200], function(a, b, c) {
* return a + b + c;
* });
* // => [111, 222]
*/
var zipWith = rest(function(arrays) {