mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-24 18:32:22 +00:00
edit demo code
This commit is contained in:
parent
ed283d0207
commit
9fb9439d89
@ -735,7 +735,7 @@ function* bar() {
|
|||||||
function* bar() {
|
function* bar() {
|
||||||
yield 'x';
|
yield 'x';
|
||||||
for (let v of foo()) {
|
for (let v of foo()) {
|
||||||
console.log(v);
|
yield v;
|
||||||
}
|
}
|
||||||
yield 'y';
|
yield 'y';
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user