-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Shouldn't iterator
be called something else – e.g. operation
?
#1011
Comments
Our nomenclature is a bit weird. All these examples predate the official iterator spec. It's hard to pick a better word --- To make things more confusing, we're going to add support for ES6 iterators in addition to plain arrays for functions like |
|
The benefits of having a contributor who still remembers his CS! Should we change the docs across the board to use |
I would say yes, let's use |
For what its worth +1, Aldo please let me know if I can help with this change. |
@crispen-smith make the pull request if interested otherwise me or Alex will whenever we have some spare time |
I'll submit in the next few days. |
PR Submitted. |
Closed via #1021 |
In:
each(arr, iterator, [callback])
The second argument is not the iterator.
each
itself is the iterator. The second argument is an operation that the iterator perform on each and every member of the passed array,arr
.Am I missing something here?
The text was updated successfully, but these errors were encountered: