zip (Functional Programming) es-toolkit
Creates a function that groups values from arrays by index. Use it with pipe.
Info
Usage
zip groups the value at each index from the piped array and the configured arrays. If arrays have different lengths, missing values are undefined.
Parameters
arrsArray<readonly T[]>required
The arrays to zip with the piped array.
Returns
A function that maps the piped array to grouped rows by index.
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.