> For AI agents: the complete documentation index is available at https://massaman.dev/llms.txt, the full documentation bundle is available at https://massaman.dev/llms-full.txt.

# unzipWith (Functional Programming) es-toolkit

Creates a function that regroups zipped arrays and combines each position. Use it with [`pipe`](https://massaman.dev/reference/fp/pipe.md).

```typescript
const result = pipe(array, unzipWith(iteratee));
```

::: info

Prefer the original es-toolkit [`unzipWith`](https://massaman.dev/reference/array/unzipWith.md) in ordinary code. Use this `fp` variant when composing transformations with [`pipe`](https://massaman.dev/reference/fp/pipe.md).

:::

## Usage

`unzipWith` collects values at the same position from grouped rows, calls `iteratee` with those values, and returns the results.

```typescript
import { pipe, unzipWith } from 'es-toolkit/fp';

pipe(
  [
    [1, 10],
    [2, 20],
  ],
  unzipWith((a, b) => a + b)
); // => [3, 30]
```

#### Parameters


iteratee(...args: T[]) => Rrequired

The function that combines values from the same position.

#### Returns

A function that maps zipped rows to combined values by position.

```typescript
(target: readonly T[][]) => R[]
```


Source: es-toolkit

Re-exported verbatim from [`es-toolkit`](https://es-toolkit.dev/fp/reference/unzipWith.html). Implementation, edge cases, and performance behavior are owned upstream. This page mirrors the documentation at the pinned version; the linked source is authoritative.
