Tin mới
JavaScript: Scripting language
Web APIs: Programming interfaces
Structuring content with HTML module
Dynamic scripting with JavaScript module
If the underlying iterator doesn't have a return() method, the yield* expression turns into a return statement, just like calling return() on a suspended yield expression.
Besides generator objects, yield* can also yield other kinds of iterables (e.g., arrays, strings, or arguments objects).
This page was last modified on Jul 8, 2025 by MDN contributors.