3 ways to use reduce in javascript
flat an array, sum all numbers and convert to object
Tags: reduce, javascript, array