DEV Community

[Comment from a deleted post]
Collapse
 
maxart2501 profile image
Massimo Artizzu

Don't use map unless you're returning something: use forEach instead.
Also remember you can use for...of too.