Share your code. Components are building blocks, you are the architect.

utils/from-pairs
v1.1.0
1.1.0
1.0.0
MIT
PUBLIC
3
1     DEPENDENCIES
Build: fail
BuildFail
Build Status: fail
Creates a new object from a list key-value pairs

Please configure Bit as a scoped registry to install components with NPM.Learn more

npm config set '@bit:registry' https://node.bitsrc.io
Use utils/from-pairs in your project
npm i @bit/bit.ramda.utils.from-pairs
Copied

fromPairs (pairs:Array) : Object

Creates a new object from a list key-value pairs. If a key appears in multiple pairs, the rightmost pair is included in the object.

Example

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

Argument

pairs: Array

An array of two-element arrays that will be the keys and values of the output object.

Returns

Object

The object made by pairing up `keys` and `values`.