Closed RangerMauve closed 7 years ago
The new for ... of syntax ignores the completion value, so it would make sense to ignore it for the different functions introduced here.
function *example(){ yield 1; yield 2; return 3; } for(let i of example()) console.log(i);
Outputs
1 2
Yeah that's very likely correct, completion values should be ignored.
The new for ... of syntax ignores the completion value, so it would make sense to ignore it for the different functions introduced here.
Outputs