mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2024-04-21 12:32:22 +00:00
edit demo code
This commit is contained in:
+1
-1
@@ -735,7 +735,7 @@ function* bar() {
|
||||
function* bar() {
|
||||
yield 'x';
|
||||
for (let v of foo()) {
|
||||
console.log(v);
|
||||
yield v;
|
||||
}
|
||||
yield 'y';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user