DEV Community

loading...

Discussion on: Map, reduce and all these stuff

Collapse
magicleon94 profile image
Antonello Galipò

An interesting thing you might point out is that reduce takes an optional third parameter, which is an initial value. This could be useful in some situation

Collapse
mandrewcito profile image
Andrés Baamonde Lozano Author

I will add it to post, thanks!

Forem Open with the Forem app