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

x/rambda/mod.ts>zipObj

Faster and smaller alternative to Ramda
Go to Latest
function zipObj
import { zipObj } from "https://deno.land/x/rambda@9.2.1/mod.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