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).
zip
iteratee
5.7.0
[[unzip]],[[unzipWith]],[[zip]],[[zipObject]],[[zipObjectDeep]],[[zipWith]]
zipWith([1, 2], [10, 20], [100, 200], (a, b, c) => a + b + c)// => [111, 222] Copy
zipWith([1, 2], [10, 20], [100, 200], (a, b, c) => a + b + c)// => [111, 222]
The arrays to process.
Optional
The function to combine grouped values.
Returns the new array of grouped elements.
This method is like
zip
except that it acceptsiteratee
to specify how grouped values should be combined. The iteratee is invoked with the elements of each group: (...group).Since
5.7.0
See
[[unzip]],[[unzipWith]],[[zip]],[[zipObject]],[[zipObjectDeep]],[[zipWith]]
Example