DEV Community


Discussion on: Map, reduce and all these stuff

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

mandrewcito profile image
Andrés Baamonde Lozano Author

I will add it to post, thanks!

Forem Open with the Forem app