Update article.md

This commit is contained in:
Manik Kapoor 2021-06-27 12:50:01 +05:30 committed by GitHub
parent bed62e1459
commit 624b48b108
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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