We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Thanks for an extremely useful library.
Having the index in the forEach callback would be handy, and make it more like Array.forEach.
forEach
Workaround is to cast to an array first, as in iterate(...).toArray().forEach(...) but that obviously defeats much of the purpose.
iterate(...).toArray().forEach(...)
The text was updated successfully, but these errors were encountered:
@jscheid Since there is no answer here, iter-ops does provide the index.
Sorry, something went wrong.
feat: add index param to callback of .map and .forEach
74295f8
fix felixfbecker#30
Successfully merging a pull request may close this issue.
Thanks for an extremely useful library.
Having the index in the
forEach
callback would be handy, and make it more like Array.forEach.Workaround is to cast to an array first, as in
iterate(...).toArray().forEach(...)
but that obviously defeats much of the purpose.The text was updated successfully, but these errors were encountered: