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

Including Index in Callbacks for Array Iterating Methods? #594

Closed
Albert-IV opened this issue Aug 11, 2014 · 2 comments
Closed

Including Index in Callbacks for Array Iterating Methods? #594

Albert-IV opened this issue Aug 11, 2014 · 2 comments

Comments

@Albert-IV
Copy link

I'm sure this has been answered to hell and back again, but is there any reason behind not including the index when using .map(), .each(), etc methods? When going over an Array, it would be super-handy to have this information (and would more closely match the native Array.prototype.forEach() method).

I saw there was a PR on #168, but that never seemed to move forward from there (and was more for iterating over object keys).

I can understand the need to not break backwards compatibility, but any plans on including such functionality? Are there any outstanding PR's that I'm missing?

@aearly
Copy link
Collaborator

aearly commented Aug 12, 2014

@Albert-IV
Copy link
Author

Ahh, OK. I'd read #321 but I guess I didn't fully grok it. I'll hop over there and see what needs to be done.

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