Closures

1-minute read

A closure is a function that stores (“closes over”) an environment (a set of captured variables) and another function that uses that environment.

Support us via BuyMeACoffee