Convert an array to an object based on the return value of an iteratee.
Install
npm install obj-from-arr
Usage
const objFromArr = ; ;//=> { "a": 1, "b": 2, "c": 3 }
API
objFromArr(array, iteratee)
arr
Type: array
The array to convert.
iteratee
Type: function<Array.map>
The iteratee to use when iterating through the array.