{"action":"closed","issue":{"url":"https://api.github.com/repos/caolan/async/issues/651","labels_url":"https://api.github.com/repos/caolan/async/issues/651/labels{/name}","comments_url":"https://api.github.com/repos/caolan/async/issues/651/comments","events_url":"https://api.github.com/repos/caolan/async/issues/651/events","html_url":"https://github.com/caolan/async/issues/651","id":47353503,"number":651,"title":"Passing index to iterator in \"each\"","user":{"login":"pensierinmusica","id":3594037,"avatar_url":"https://avatars.githubusercontent.com/u/3594037?v=3","gravatar_id":"","url":"https://api.github.com/users/pensierinmusica","html_url":"https://github.com/pensierinmusica","followers_url":"https://api.github.com/users/pensierinmusica/followers","following_url":"https://api.github.com/users/pensierinmusica/following{/other_user}","gists_url":"https://api.github.com/users/pensierinmusica/gists{/gist_id}","starred_url":"https://api.github.com/users/pensierinmusica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pensierinmusica/subscriptions","organizations_url":"https://api.github.com/users/pensierinmusica/orgs","repos_url":"https://api.github.com/users/pensierinmusica/repos","events_url":"https://api.github.com/users/pensierinmusica/events{/privacy}","received_events_url":"https://api.github.com/users/pensierinmusica/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-10-31T01:59:11Z","updated_at":"2015-05-19T18:55:53Z","closed_at":"2015-05-19T18:55:53Z","body":"It would be great to have \"each\" passing \"index\" along to the iterator function.\r\n\r\nRight now iterator is called as `iterator(item, callback)`.\r\nWhich could become `iterator(item, index, callback)`.\r\n\r\nThe same concept could be applied to sister functions like \"eachSeries\" and \"eachLimit\". What do you think?\r\n\r\nThanks!"}}