SOURCE

function* somewords() {
yield "hello";
yield "world";
}
for (var word of somewords()) {

}
console 命令行工具 X clear

                    
>
console