Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Turn an Array of Objects into an Object using Reduce
// change array & property to relevant values
const reducedObj = array.reduce(function(accum, item) {
accum[] = item;
return accum;
}, {})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.