Generator JavaScript di kelas
class A {
* values() {
yield "a value";
yield* [1, 2, 3, 4, 5];
}
}
Fantastic Flatworm
class A {
* values() {
yield "a value";
yield* [1, 2, 3, 4, 5];
}
}