You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/generators.md
-2Lines changed: 0 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,5 @@
1
1
## Generators
2
2
3
-
> NOTE: You cannot use generators in TypeScript in a meaningful way (the ES5 emitter is in progress). However, that will change soon so we still have this chapter.
4
-
5
3
`function *` is the syntax used to create a *generator function*. Calling a generator function returns a *generator object*. The generator object just follows the [iterator][iterator] interface (i.e. the `next`, `return` and `throw` functions).
6
4
7
5
There are two key motivations behind generator functions:
0 commit comments