Skip to content

Commit 9ad1af3

Browse files
authored
Merge pull request #443 from Kinrany/patch-2
Remove the note about generators being unavailable
2 parents bfffbbd + 5e280ce commit 9ad1af3

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

docs/generators.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
## Generators
22

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-
53
`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).
64

75
There are two key motivations behind generator functions:

0 commit comments

Comments
 (0)