Closed theemathas closed 3 years ago
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.
Issue moved to mdn/content #1457 via ZenHub
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.