Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/rambda/index.d.ts>fromPairs

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

It transforms a listOfPairs to an object.

Parameters

listOfPairs: ([number, V])[]

Returns

{ [index: number]: V; }

Parameters

listOfPairs: ([string, V])[]

Returns

{ [index: string]: V; }