DEV Community

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

Collapse
 
narasimha1997 profile image
Narasimha Prasanna HN

But yeah it is immediately garbage collected by V8s GC. But still, using map is not recommended for larger arrays, because you may need lot of heap memory at that point in time before it is garbage collected.

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