I\'m using caolan\'s async.js library, specifically the .each method.
How do you get access to the index in the iterator?
async.each(ary, function(elemen
someArrayWithIndexes = someArray.map(function(e, i) {return {obj: e, index: i}}); async.each(someArrayWithIndexes , function(item, done){ console.log("Index:", item.index); console.log("Object:", item.obj); });