All files / react-dom map-to-object.js

100% Statements 4/4
100% Branches 0/0
100% Functions 1/1
100% Lines 3/3
1 2 3 4 5 62x   4x   2x  
const _ = require('lodash/fp');
 
const mapToObject = _.curry((iteratee, array) => _.zipObject(array, _.map(iteratee, array)));
 
module.exports = mapToObject;