2018-05-19 00:03:05 -04:00

5 lines
67 B
JavaScript

function *foo() {
const x = (yield 5: any);
x ? yield 1 : x;
}