I have the following situation:
var foo = [ 0, 1, 2 ]for (var i in foo) { Asyncstuff.get(URI).on('response', function(res) { console.log(i); } });}Because the .on('response',...) is called in an asynchronous manner, the output will most likely be
222Is there a possibility to pass the value of i at the time the .get() is called to the callback function?