DEV Community

Discussion on: Understanding the .map(), .filter() and .reduce() array methods in Javascript.

Collapse
 
htho profile image
Hauke T.

I always have to think hard before I use reduce, thats why I checked your example. Nice work.

Please Double check your code examples. Your example for the syntax of the reduce method is (syntactically) incorrect. You probably wanted to write "initialValue" instead of "inital value".