How to group an array of objects by key in JavaScriptLearn how to use Array.prototype.reduce to group an array of objects by key
How to merge two objects in JavaScriptLearn how to create a new object that combines two objects properties