Posts Tagged 'map'

2021-04-17 15:47 UTC

Misusing `map`

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

Unfortunately, in the past 18 months or so I'm increasingly seeing people misusing map in code like this on Stack Overflow: Note that: The map callback doesn't return anything The return value of map isn't used This is an antipattern. Sadly, it seems…