Skip to content

Commit fd0d378

Browse files
authored
Update article.md
"chapter" -> "article" (6 times or so) I believe that is consistent with the agreed-upon terminology.
1 parent 2fee345 commit fd0d378

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
A `Proxy` object wraps another object and intercepts operations, like reading/writing properties and others, optionally handling them on its own, or transparently allowing the object to handle them.
44

5-
Proxies are used in many libraries and some browser frameworks. We'll see many practical applications in this chapter.
5+
Proxies are used in many libraries and some browser frameworks. We'll see many practical applications in this article.
66

77
The syntax:
88

@@ -244,7 +244,7 @@ If we forget to do it or return any falsy value, the operation triggers `TypeErr
244244
Such methods differ in details:
245245
- `Object.getOwnPropertyNames(obj)` returns non-symbol keys.
246246
- `Object.getOwnPropertySymbols(obj)` returns symbol keys.
247-
- `Object.keys/values()` returns non-symbol keys/values with `enumerable` flag (property flags were explained in the chapter <info:property-descriptors>).
247+
- `Object.keys/values()` returns non-symbol keys/values with `enumerable` flag (property flags were explained in the article <info:property-descriptors>).
248248
- `for..in` loops over non-symbol keys with `enumerable` flag, and also prototype keys.
249249
250250
...But all of them start with that list.
@@ -446,14 +446,14 @@ Besides, an object may be proxied multiple times (multiple proxies may add diffe
446446
So, such a proxy shouldn't be used everywhere.
447447

448448
```smart header="Private properties of a class"
449-
Modern JavaScript engines natively support private properties in classes, prefixed with `#`. They are described in the chapter <info:private-protected-properties-methods>. No proxies required.
449+
Modern JavaScript engines natively support private properties in classes, prefixed with `#`. They are described in the article <info:private-protected-properties-methods>. No proxies required.
450450
451451
Such properties have their own issues though. In particular, they are not inherited.
452452
```
453453

454454
## "In range" with "has" trap
455455

456-
Let's see more examples.
456+
Let's see more examples.ar
457457

458458
We have a range object:
459459

@@ -507,9 +507,9 @@ The `apply(target, thisArg, args)` trap handles calling a proxy as function:
507507
- `thisArg` is the value of `this`.
508508
- `args` is a list of arguments.
509509

510-
For example, let's recall `delay(f, ms)` decorator, that we did in the chapter <info:call-apply-decorators>.
510+
For example, let's recall `delay(f, ms)` decorator, that we did in the article <info:call-apply-decorators>.
511511

512-
In that chapter we did it without proxies. A call to `delay(f, ms)` returned a function that forwards all calls to `f` after `ms` milliseconds.
512+
In that article we did it without proxies. A call to `delay(f, ms)` returned a function that forwards all calls to `f` after `ms` milliseconds.
513513

514514
Here's the previous, function-based implementation:
515515

@@ -587,7 +587,7 @@ The result is the same, but now not only calls, but all operations on the proxy
587587

588588
We've got a "richer" wrapper.
589589

590-
Other traps exist: the full list is in the beginning of this chapter. Their usage pattern is similar to the above.
590+
Other traps exist: the full list is in the beginning of this article. Their usage pattern is similar to the above.
591591

592592
## Reflect
593593

0 commit comments

Comments
 (0)