DEV Community

Discussion on: Reduce for beginners

Collapse
 
ifkas profile image
Ivo Culic

Hi, agree, no need to use reduce each time when in certain or most situations we can use other methods, but, regarding the performance, the reduce method is much faster when handling big data. For example, we can "filter" and "map" all in one step with "reduce", with it we can iterate just once.