DEV Community

Discussion on: Master the Javascript Array Reduce Method with 10 Examples

 
ramgendeploy profile image
Ramiro - Ramgen

Yes you are correct, those are not the same, but useReducer, has the same idea behind so it really useful to understand array.prototype.reduce to understand things like useReducer.
Well I guess I need to do more thinking then 😅

Thread Thread
 
fbolaji profile image
Francis.B

I understand both of your arguments and illustrate of how .reduce() works.