Open soggybag opened 2 years ago
https://github.com/bakedoatmeal/js-data-challenges/blob/518c2cfba8e312147419dd3dee8bcd631a907d66/challenges-2.js#L77
Would it possible to use reducer here?
Done! It's cool using reduce to return an array or object, previously I had only used it to calculate single values
https://github.com/bakedoatmeal/js-data-challenges/blob/518c2cfba8e312147419dd3dee8bcd631a907d66/challenges-2.js#L77
Would it possible to use reducer here?