I have an array which contains 4 different objects and looks like this:
[ { a: 1, b: 12, c: 3 }, { a: 15, d: 1, e: 8 }, {b: 2, d:6 }, {a: 1} ]
I want to retu one object with the sum of each object's values added together.
I am looking to retu the following object:
{a: 17, b: 14, c: 3, d: 7; e: 8}
I have attempted many different solutions, and also checked here for which I surprisingly could not find a solution. This was as close as I found, but could still not solve the issue.