DEV Community

Discussion on: What s wrong with Array.reduce ?

 
dvddpl profile image
Davide de Paolis

Indeed. Early termination (or very huge datasets, where I really need/want to iterate only once) is the only case where I use for loops. Otherwise it's always map and filter + reduce sometimes.