InterviewQuestions
InterviewQuestions copied to clipboard
吾日三省吾身
```javascript function* gen(x) { var y = yield x + 2; return y; } var g = gen(1); g.next() g.next(2) // 这里的结果是return返回的,done应该是true ```
chrome控制台打印结果与给出的不一致
题目: https://github.com/a1029563229/InterviewQuestions/blob/master/network/4/README.md#L4 受信任写成了受新人。 截图: 
按照答案并不能完合属平化数组,另外,使用splice(i,1)会跳过下一个元素的到断,且无法对多层数组的元素进行处理
slice(1)???
execute/8/ 1.undefined 2.{ n: 2 }