Last active
January 10, 2023 23:15
-
-
Save LoganBarnett/23110f8dd00cd02e1015201035c2d8e2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const xs = [] | |
const scope = {} | |
for(scope.i = 0; scope.i < 3; ++scope.i) { | |
xs.push(() => console.log('scope.i is', scope.i)) | |
} | |
xs.forEach(f => f()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment