zipObject (Functional Programming) es-toolkit
Creates a function that builds an object from keys and values. Use it with pipe.
Info
Usage
zipObject uses the piped array as keys and pairs each key with the value at the same index in values.
Parameters
valuesreadonly V[]required
The values assigned to keys from the piped array by index.
Returns
A function that maps keys to an object built from 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.