1 line
90 B
JavaScript
1 line
90 B
JavaScript
module.exports = objectFromPairs = arr => arr.reduce((a, v) => ((a[v[0]] = v[1]), a), {}); |