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

Callback arguments #22

Open
zloirock opened this issue Feb 17, 2021 · 0 comments
Open

Callback arguments #22

zloirock opened this issue Feb 17, 2021 · 0 comments

Comments

@zloirock
Copy link
Contributor

In examples in the README and the polyfill, in case, if it's used with a callback, a callback takes only one argument - a value. Maybe makes sense to make it consistent with the rest array methods (like .filter) and pass 3 arguments - value, index, and array?

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
@zloirock and others