Update article.md
"as `Proxy` trap" -> "as the `Proxy` trap"
This commit is contained in:
parent
fd0d378f0a
commit
10c7807f49
1 changed files with 1 additions and 1 deletions
|
@ -619,7 +619,7 @@ alert(user.name); // John
|
|||
|
||||
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.
|
||||
|
||||
**For every internal method, trappable by `Proxy`, there's a corresponding method in `Reflect`, with the same name and arguments as `Proxy` trap.**
|
||||
**For every internal method, trappable by `Proxy`, there's a corresponding method in `Reflect`, with the same name and arguments as the `Proxy` trap.**
|
||||
|
||||
So we can use `Reflect` to forward an operation to the original object.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue