Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/rambda/index.d.ts>zipObj

Faster and smaller alternative to Ramda
Latest
function zipObj
import { zipObj } from "https://deno.land/x/rambda@9.4.1/index.d.ts";

It will return a new object with keys of keys array and values of values array.

Type Parameters

T
K extends string

Parameters

keys: K[]
values: T[]

Returns

[P in K]: T

Type Parameters

K extends string

Parameters

keys: K[]

Returns

<T>(values: T[]) => [P in K]: T

Type Parameters

T
K extends number

Parameters

keys: K[]
values: T[]

Returns

[P in K]: T

Type Parameters

K extends number

Parameters

keys: K[]

Returns

<T>(values: T[]) => [P in K]: T