Module

x/rambda/mod.ts>zipObj

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