javascript pass iterator to callback code example
Example: javascript pass iterator to callback
for (var i = 0; i < a.length; i++) (function(i)
{
//some function here
}) (i);
for (var i = 0; i < a.length; i++) (function(i)
{
//some function here
}) (i);