Crie geradores JavaScript

// define a generator function
function* generator_function() {
   ... .. ...
}

// creating a generator
const generator_obj = generator_function();
SAMER SAEID