How to reduce an array of objects into one object with unique ...

How to reduce an array of objects into one object with unique ...