use another generator function in generator fuction in javascript code example
Example: function generator js
function* name([param[, param[, ... param]]]) {
statements
}
function* name([param[, param[, ... param]]]) {
statements
}