mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2024-04-21 12:32:22 +00:00
docs(generator): edit generator
This commit is contained in:
@@ -1076,6 +1076,7 @@ function* g() {
|
||||
}
|
||||
|
||||
let obj = g();
|
||||
obj.next();
|
||||
obj.a // undefined
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user