Update article.md

This commit is contained in:
Alexey Pyltsyn 2020-05-30 20:33:51 +03:00 committed by GitHub
parent cd2c7ce3c8
commit 075266e251
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -662,7 +662,7 @@ In most cases we can do the same without `Reflect`, for instance, reading a prop
### Proxying a getter ### Proxying a getter
Let's see an example that demonstrates why `Reflect.get` is better. And we'll also see why `get/set` have the fourth argument `receiver`, that we didn't use before. Let's see an example that demonstrates why `Reflect.get` is better. And we'll also see why `get/set` have the third argument `receiver`, that we didn't use before.
We have an object `user` with `_name` property and a getter for it. We have an object `user` with `_name` property and a getter for it.