mdn / sprints

Archived: MDN Web Docs issues are tracked in the content repository.
https://github.com/mdn/content
Creative Commons Zero v1.0 Universal
149 stars 142 forks source link

Iteration protocol doesn't mention the return() method. #3874

Closed theemathas closed 3 years ago

theemathas commented 3 years ago

Request type

Details

The iteration protocol page does not mention the return() method that seems to be an optional part of the iterator protocol. Also note that the page for Generator.prototype.return() does not mention why this return method exists.

Unfortunately, I am unable to find proper documentation of this anywhere on the internet, possibly because "return" isn't a google-friendly method name.

chrisdavidmills commented 3 years ago

Issue moved to mdn/content #1457 via ZenHub