DEV Community

Discussion on: Stop using Array.map() everywhere 🥵

Collapse
 
eyal1990 profile image
Eyal Ofri

If you're using ESLint you can enforce this behavior by using the rule "array-callback-return":
eslint.org/docs/2.0.0/rules/array-...

Some comments have been hidden by the post's author - find out more