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
for await (const it of [Promise.resolve(1), 2, Promise.resolve(3)]) console.log(it); // => 1, 2, 3 await AsyncIterator.from([Promise.resolve(1), 2, Promise.resolve(3)]).toArray(); // => [1, 2, 3] // but: await Array.fromAsync([Promise.resolve(1), 2, Promise.resolve(3)]); // => TypeError
The text was updated successfully, but these errors were encountered:
This is an oversight. Thanks for catching it. I will fix it in the future.
Sorry, something went wrong.
783e2a2
explainer/spec: Sync iterators and array-like objects
64a4921
Fixes #6. Also addresses #7.
No branches or pull requests
The text was updated successfully, but these errors were encountered: