It is pretty straight forward to get what 'yield' is doing in a generator function in the example below. But apparently there is another version of it 'yield*'
function * loop(times){
while(times){
times--;
yield times;
}
}
let result = loop(2);
result.next() // {value: 1, done:false}
Can someone explain the difference between'yield' and 'yield*' ?