Skip to content

Commit 10c7807

Browse files
authored
Update article.md
"as `Proxy` trap" -> "as the `Proxy` trap"
1 parent fd0d378 commit 10c7807

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

1-js/99-js-misc/01-proxy/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ alert(user.name); // John
619619

620620
In particular, `Reflect` allows us to call operators (`new`, `delete`...) as functions (`Reflect.construct`, `Reflect.deleteProperty`, ...). That's an interesting capability, but here another thing is important.
621621

622-
**For every internal method, trappable by `Proxy`, there's a corresponding method in `Reflect`, with the same name and arguments as `Proxy` trap.**
622+
**For every internal method, trappable by `Proxy`, there's a corresponding method in `Reflect`, with the same name and arguments as the `Proxy` trap.**
623623

624624
So we can use `Reflect` to forward an operation to the original object.
625625

0 commit comments

Comments
 (0)