_.unzipWith()
_.unzipWith(array, [iteratee=_.identity])
This method is like _.unzip
except that it accepts iteratee to specify how regrouped values should be combined. The iteratee is invoked with the elements of each group: (...group).
Arguments
array (Array)
: The array of grouped elements to process.
[iteratee=_.identity] (Function)
: The function to combine regrouped values.
Returns
(Array)
: Returns the new array of regrouped elements.