Help with Array.reduce for accumulating values - Effect Community