zipWith (Functional Programming) es-toolkit
Creates a function that combines values from arrays by index. Use it with pipe.
Info
Usage
zipWith passes values at the same index from the piped array and configured arrays to combine. If arrays have different lengths, missing values are passed as undefined.
Parameters
arrsArray<readonly unknown[]>required
The arrays to combine with the piped array.
combine(...values: unknown[]) => Rrequired
The function that receives values at the same index, followed by the index, and returns a new value.
Returns
A function that maps the piped array to combined values.
Source: es-toolkit
Re-exported verbatim from es-toolkit. Implementation, edge cases, and performance behavior are owned upstream. This page mirrors the documentation at the pinned version; the linked source is authoritative.