Posts Tagged 'map'

2021-04-17 15:47 UTC

Misusing `map`

Posted 2021-04-17 15:47 UTC in javascript array map antipattern

Unfortunately, since late 2019 or early 2020 or so I'm increasingly seeing people (for instance, on Stack Overflow) misusing map like this: Note that: The map callback doesn't return anything The return value of map isn't used This is an antipattern…