The inverse of _.toPairs; this method returns an object composed from key-value pairs.
_.toPairs
pairs
The key-value pairs.
Returns the new object.
_.fromPairs([['fred', 30], ['barney', 40]]);// => { 'fred': 30, 'barney': 40 } Copy
_.fromPairs([['fred', 30], ['barney', 40]]);// => { 'fred': 30, 'barney': 40 }
_.fromPairs
The inverse of
_.toPairs
; this method returns an object composed from key-valuepairs
.