Update article.md
This commit is contained in:
parent
bed62e1459
commit
624b48b108
1 changed files with 1 additions and 1 deletions
|
@ -468,7 +468,7 @@ g.next(); // { value: undefined, done: true }
|
||||||
|
|
||||||
If we again use `generator.return()` in a completed generator, it will return that value again ([MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator/return)).
|
If we again use `generator.return()` in a completed generator, it will return that value again ([MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator/return)).
|
||||||
|
|
||||||
Often we don't use it, as most of time we want to get all returning values, but it can be useful when we want to stop generator in a condition.
|
Often we don't use it, as most of time we want to get all returning values, but it can be useful when we want to stop generator in a specific condition.
|
||||||
|
|
||||||
## Summary
|
## Summary
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue