4.17.11
3.10.1
2.4.2
1.3.1
_.zipWith([arrays], [iteratee=_.identity])
This method is like _.zip
except that it accepts iteratee
to specify
how grouped values should be combined. The iteratee is invoked with the
elements of each group: (...group).
Since
3.8.0
Arguments
argument
[arrays]
[iteratee=_.identity]
type
...Array
Function
description
The arrays to process.
The function to combine grouped values.
Returns
(array)
Example
_.zipWith(
[1, 2],
[10, 20],
[100, 200],
function (a, b, c) {
return a + b + c;
}
);
// => [111, 222]
_.zipWith([1, 2], [10, 20], [100, 200], function (a, b, c) {
return a + b + c;
});
// => [111, 222]