Skip to content

Commit 90c52e7

Browse files
lolWKViolet-Bora-Lee
authored andcommitted
[오타수정] Part 1 - 6.9 call/apply와 데코레이터, 포워딩 #1545
1 parent c8fc51c commit 90c52e7

File tree

1 file changed

+1
-1
lines changed
  • 1-js/06-advanced-functions/09-call-apply-decorators

1 file changed

+1
-1
lines changed

1-js/06-advanced-functions/09-call-apply-decorators/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ The trick is called *method borrowing*.
390390
6. `this.length`개의 항목이 모두 추가될 때까지 이 일을 반복합니다.
391391
7. `result`를 반환합니다.
392392

393-
기존에 `call`을 사용했던 방식처럼 `this`를 받고 `this[0]`, `this[1]` 등이 합쳐집니다. 이렇게 내부 알고리즘이 구현되어있기 때문에 어떤 유사 배열이던 `this`가 될 수 있습니다. 상당수의 메서드가 이런 관습을 따르고 있죠. `this``arguments`가 할당되더라도 잘 동작하는 이유가 여기에 있습니다.
393+
기존에 `call`을 사용했던 방식처럼 `this`를 받고 `this[0]`, `this[1]` 등이 합쳐집니다. 이렇게 내부 알고리즘이 구현되어있기 때문에 어떤 유사 배열이든 `this`가 될 수 있습니다. 상당수의 메서드가 이런 관습을 따르고 있죠. `this``arguments`가 할당되더라도 잘 동작하는 이유가 여기에 있습니다.
394394

395395
## 데코레이터와 함수 프로퍼티
396396

0 commit comments

Comments
 (0)