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

Promise.all should accept any iterable, not just Array #103

Open
lettertwo opened this issue Apr 15, 2015 · 2 comments
Open

Promise.all should accept any iterable, not just Array #103

lettertwo opened this issue Apr 15, 2015 · 2 comments
Labels
Milestone

Comments

@lettertwo
Copy link

According to the MDN, Promise.all should accept any iterable, not just Array.

@lettertwo lettertwo changed the title Promise.all does not accept an iterable Promise.all should accept any iterable, not just Array Apr 15, 2015
@lettertwo
Copy link
Author

Perhaps this could be as simple as wrapping the value Promise.all() receives in Array.from, if it exists.

@stefanpenner
Copy link
Owner

Ya, totally agree and it is planned to add this support.

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