I am having problem with the code ...especially in the "org" accumulator in the reduce method, Can anyone please help me!

Can you please post your code instead of a screenshot?

Thats not my code…the trouble is , i need help for better understanding of reduce method.

obj is the accumulator, it starts as an empty object and is built step after step to make the desired object

1 Like