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

x/rambda/immutable.d.ts>zipObj

Faster and smaller alternative to Ramda
Latest
function zipObj
import { zipObj } from "https://deno.land/x/rambda@9.4.1/immutable.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: readonly K[]
values: readonly T[]

Returns

readonly [P in K]: T

Type Parameters

K extends string

Parameters

keys: readonly K[]

Returns

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

Type Parameters

T
K extends number

Parameters

keys: readonly K[]
values: readonly T[]

Returns

readonly [P in K]: T

Type Parameters

K extends number

Parameters

keys: readonly K[]

Returns

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