Skip to main content
Module

x/rambda/fromPairs.js

Faster and smaller alternative to Ramda
Go to Latest
File
export function fromPairs(listOfPairs){ const toReturn = {} listOfPairs.forEach(([ prop, value ]) => toReturn[ prop ] = value)
return toReturn}