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

Confusing example in Iterators/Generators FAQ #17

Open
Ms2ger opened this issue Sep 4, 2019 · 0 comments
Open

Confusing example in Iterators/Generators FAQ #17

Ms2ger opened this issue Sep 4, 2019 · 0 comments

Comments

@Ms2ger
Copy link

Ms2ger commented Sep 4, 2019

[Symbol.iterator](){
  return {
    next: () => ({ value: this.next(), done: this[done] })
  , return: () => ({ value: this.resolve(), done: this[done] })
  , throw: () => ({ value: this.reject(), done: this[done] })
  }
}

What is done in this[done]?

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

1 participant