DEV Community

Discussion on: Memory leak by anonymous functions

Collapse
 
savagepixie profile image
SavagePixie

How is this issue different for anonymous functions declared using the function keyword?

Collapse
 
jeevankishore profile image
Jeevan Kishore • Edited

@savagepixie It isn't different, as long as there are creation of objects which cannot be GC'd the issue remains the same. The article addresses the latter as people prefer to use the fat arrows widely because of binding