1 2 3 4 5 6 7 8 9 10
function* a(x, y, z) { if (arguments.length !== 3) { throw "Wrong output"; } yield x; yield y; yield z; } const x = a(3, 4, 5); x.next();