Module

x/rambda/rambda.js>zipObj

Faster and smaller alternative to Ramda
Latest
function zipObj
import { zipObj } from "https://dotland.deno.dev/x/rambda@9.4.1/rambda.js";

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