DEV Community

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

Collapse
 
adam_cyclones profile image
Adam Crockett 🌀 • Edited

GC good at cleaning up orphaned things in memory, perhaps this is my head cannon talking, but I trust that in memory non memory critical applications (99% of cases, not running on a Saga Saturn), map is just fine. I don't have a problem using array.map because the old array will likely get cleared up sooner or later

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