Last active
August 22, 2016 06:20
-
-
Save ynonp/0708f1c952bad43efd42c4d41904427f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
"use strict"; | |
var data = []; | |
function foo() { | |
var _loop = function _loop(i) { | |
data.push(function () { | |
return i; | |
}); | |
}; | |
for (var i = 0; i < 10; i++) { | |
_loop(i); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment