You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 1-js/06-advanced-functions/09-call-apply-decorators/article.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -390,7 +390,7 @@ The trick is called *method borrowing*.
390
390
6.`this.length`개의 항목이 모두 추가될 때까지 이 일을 반복합니다.
391
391
7.`result`를 반환합니다.
392
392
393
-
기존에 `call`을 사용했던 방식처럼 `this`를 받고 `this[0]`, `this[1]` 등이 합쳐집니다. 이렇게 내부 알고리즘이 구현되어있기 때문에 어떤 유사 배열이던`this`가 될 수 있습니다. 상당수의 메서드가 이런 관습을 따르고 있죠. `this`에 `arguments`가 할당되더라도 잘 동작하는 이유가 여기에 있습니다.
393
+
기존에 `call`을 사용했던 방식처럼 `this`를 받고 `this[0]`, `this[1]` 등이 합쳐집니다. 이렇게 내부 알고리즘이 구현되어있기 때문에 어떤 유사 배열이든`this`가 될 수 있습니다. 상당수의 메서드가 이런 관습을 따르고 있죠. `this`에 `arguments`가 할당되더라도 잘 동작하는 이유가 여기에 있습니다.
0 commit comments