DEV Community

Discussion on: What´s wrong with Array.reduce ?

Collapse
lukaszahradnik profile image
Lukáš Zahradník

Can't you just modify linting rules so that reduce is allowed?

Problem with reduce is that people are misusing a lot.

Collapse
dvddpl profile image
Davide de Paolis Author

i guess that´s the whole point. internet is full of article explaining how to use reduce. it´s new, it´s cool, and everybody wants to use it. even if they end up, ( me included, probably) misusing it.
( but yes, you can configure the linter to exclude the error, or just show it as warning)