Inflearn Community Q&A
.forEach 에서 this 와 thisArg 의 .length가 다를 경우
Resolved
Written on
·
299
0
.forEach 에서 this 와 thisArg 의 .length가 다를 경우,
this.length에 의해 바운드 되겠네요.
javascript
Answer 2
0
0
youngkiu0922
Questioner
Array.prototype.forEach 구현한 부분에서,
callback.call(this[i], i, self[i])
이렇게 해야 하는거 아닌가요?





