Unzips an array of arrays, applying an iteratee function to regrouped elements.
iteratee
The nested array to unzip. This is an array of arrays, where each inner array contains elements to be unzipped.
A function to transform the unzipped elements.
Rest
A new array of unzipped and transformed elements.
const nestedArray = [[1, 2], [3, 4], [5, 6]];const result = unzipWith(nestedArray, (item, item2, item3) => item + item2 + item3);// result will be [9, 12] Copy
const nestedArray = [[1, 2], [3, 4], [5, 6]];const result = unzipWith(nestedArray, (item, item2, item3) => item + item2 + item3);// result will be [9, 12]
Alias