Geradores JavaScript na aula

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