Module

x/lodash_es/mod.ts>fromPairs

lodash for deno use
Latest
function fromPairs
import { fromPairs } from "https://dotland.deno.dev/x/lodash_es@v0.0.2/mod.ts";

The inverse of _.toPairs; this method returns an object composed from key-value pairs.

Examples

_.fromPairs([['a', 1], ['b', 2]]); // => { 'a': 1, 'b': 2 }

Parameters

pairs

The key-value pairs.