Skip to content

Commit 7a3b355

Browse files
committed
Fix comma splices.
Use hyphen. Add comma.
1 parent dd3524b commit 7a3b355

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

doc/en/function/arguments.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ The code below will return a new `Array` containing all the elements of the
2323

2424
Array.prototype.slice.call(arguments);
2525

26-
This conversion is **slow**, it is **not recommended** to use it in performance
27-
critical sections of code.
26+
Because this conversion is **slow**, it is **not recommended** to use it in
27+
performance-critical sections of code.
2828

2929
### Passing Arguments
3030

@@ -59,7 +59,7 @@ wrappers.
5959
### Formal Parameters and Arguments Indices
6060

6161
The `arguments` object creates *getter* and *setter* functions for both its
62-
properties as well as the function's formal parameters.
62+
properties, as well as the function's formal parameters.
6363

6464
As a result, changing the value of a formal parameter will also change the value
6565
of the corresponding property on the `arguments` object, and the other way around.
@@ -105,8 +105,8 @@ modern JavaScript engines. That case is the use of `arguments.callee`.
105105

106106
In the above code, `foo` can no longer be a subject to [inlining][1] since it
107107
needs to know about both itself and its caller. This not only defeats possible
108-
performance gains that would arise from inlining, it also breaks encapsulation
109-
since the function may now be dependent on a specific calling context.
108+
performance gains that would arise from inlining, but it also breaks encapsulation
109+
because the function may now be dependent on a specific calling context.
110110

111111
It is **highly recommended** to **never** make use of `arguments.callee` or any of
112112
its properties.

0 commit comments

Comments
 (0)