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
在最后的Generator返回的也是Iterator对象这段中的示例代码
console.log(h.next()) // { value: 100, done: false } console.log(h.next()) // { value: 200, done: false } console.log(h.next()) // { value: 300, done: false } console.log(h.next()) // { value: undefined, done: true }
第三个next执行完成done应该是true
console.log(h.next()) // { value: 300, done: true}
感谢作者写出这么优质的文章,作为新手的我学到了很多。
The text was updated successfully, but these errors were encountered:
No branches or pull requests
在最后的Generator返回的也是Iterator对象这段中的示例代码
第三个next执行完成done应该是true
感谢作者写出这么优质的文章,作为新手的我学到了很多。
The text was updated successfully, but these errors were encountered: