2015-01-28 23:45:11 +11:00

6 lines
91 B
JavaScript

function* foo({ foo }) {
return foo;
}
assert(foo({ foo: "bar" }).next().value, "bar");