Tagged “closures”
-
TIL Optimizations with closures javascript closures optimization
To reduce the number of times a variable gets computed, you can use closures. Closures work by storing references to the outer function’s variables. They do not store the actual value.
See all tags.