2016-10-14 12:07:46 -04:00

5 lines
67 B
JavaScript

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