![Reduce array of objects to an object in JavaScript — Amit Merchant — A blog on PHP, JavaScript, and more Reduce array of objects to an object in JavaScript — Amit Merchant — A blog on PHP, JavaScript, and more](https://www.amitmerchant.com/cdn/reduce-array-of-objects-to-an-object-in-javascript.png)
Reduce array of objects to an object in JavaScript — Amit Merchant — A blog on PHP, JavaScript, and more
![Krasimir on X: "Tip #35: converting object to array and vice versa. I very often in need of such transformation and those are the two approaches that I'm using. Array.reduce and Object.keys. # Krasimir on X: "Tip #35: converting object to array and vice versa. I very often in need of such transformation and those are the two approaches that I'm using. Array.reduce and Object.keys. #](https://pbs.twimg.com/media/E8wAG7nXIAMMVRJ.jpg)
Krasimir on X: "Tip #35: converting object to array and vice versa. I very often in need of such transformation and those are the two approaches that I'm using. Array.reduce and Object.keys. #
![Using Array.prototype.reduce to form objects using JavaScript | by Vinicius Marchesin Araujo | Medium Using Array.prototype.reduce to form objects using JavaScript | by Vinicius Marchesin Araujo | Medium](https://miro.medium.com/v2/resize:fit:3840/1*xiDj73t-bBDLZJ_GUlDnbw.jpeg)