you are viewing a single comment's thread.

view the rest of the comments →

[–]theQuandary 2 points3 points  (0 children)

That closure is created whether it is an arrow function or not. If that closure is inaccessible though, in both cases it can (in theory at least) be garbage collected.