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

_.each does not pass the container as the 3rd argument to the function #1

Closed
pmuellr opened this issue Oct 29, 2009 · 1 comment
Closed
Labels

Comments

@pmuellr
Copy link

pmuellr commented Oct 29, 2009

In existing Array.prototype.forEach implementations, a 3rd argument is passed to the passed-in function - the original array. _.each should do this also

@jashkenas
Copy link
Owner

Quite right. I've gone through underscore and added the collection as the third argument to all the iterators. It's out along with 0.3.1. Thanks for the suggestion.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants