Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passing index to iterator in "each" #651

Closed
pensierinmusica opened this issue Oct 31, 2014 · 1 comment
Closed

Passing index to iterator in "each" #651

pensierinmusica opened this issue Oct 31, 2014 · 1 comment

Comments

@pensierinmusica
Copy link

It would be great to have "each" passing "index" along to the iterator function.

Right now iterator is called as iterator(item, callback).
Which could become iterator(item, index, callback).

The same concept could be applied to sister functions like "eachSeries" and "eachLimit". What do you think?

Thanks!

@aearly
Copy link
Collaborator

aearly commented Oct 31, 2014

See issue #321.

@aearly aearly closed this as completed May 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants