When using spread operator on a generator why return value is not retrieved

后端 未结 0 1669
不思量自难忘°
不思量自难忘° 2021-01-24 20:43

An example is better than 1000 words, so here it\'s

function* generate() {
  yield 1;
  yield 2;
  yield 3;
  return 4
}
le         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题