5 lines
67 B
JavaScript
5 lines
67 B
JavaScript
function *foo() {
|
|
const x = (yield 5: any);
|
|
x ? yield 1 : x;
|
|
}
|