source: node_modules/es-toolkit/dist/array/unzipWith.d.ts

Last change on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago

Added visualizations

  • Property mode set to 100644
File size: 712 bytes
Line 
1/**
2 * Unzips an array of arrays, applying an `iteratee` function to regrouped elements.
3 *
4 * @template T, R
5 * @param {T[][]} target - The nested array to unzip. This is an array of arrays,
6 * where each inner array contains elements to be unzipped.
7 * @param {(...args: T[]) => R} iteratee - A function to transform the unzipped elements.
8 * @returns {R[]} A new array of unzipped and transformed elements.
9 *
10 * @example
11 * const nestedArray = [[1, 2], [3, 4], [5, 6]];
12 * const result = unzipWith(nestedArray, (item, item2, item3) => item + item2 + item3);
13 * // result will be [9, 12]
14 */
15declare function unzipWith<T, R>(target: readonly T[][], iteratee: (...args: T[]) => R): R[];
16
17export { unzipWith };
Note: See TracBrowser for help on using the repository browser.