Skip to content

Commit deece9f

Browse files
committed
Fix a typo and the placement of a comma
1 parent 20970be commit deece9f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

doc/typeof.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ referencing it would result in a `ReferenceError`. This is the only thing
7474
In order to check the type of an object, it is highly recommended to use
7575
`Object.prototype.toString`; as this is the only reliable way of doing so.
7676
As shown in the above type table, some return values of `typeof` are not defined
77-
in the specification; thus, the can across various implementations.
77+
in the specification; thus, they can differ across various implementations.
7878

7979
Unless checking whether a variable is defined, `typeof` should be avoided at
8080
**all costs**.

doc/undefined.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ value does not change the value of the **type** `undefined`.
2929
Still, in order to compare something against the value of `undefined` it is
3030
necessary to retrieve the value of `undefined` in the first place.
3131

32-
In order to protect code against a possible overwritten `undefined` variable a
33-
, common technique used is to add an additional parameter to the encapsulation
32+
In order to protect code against a possible overwritten `undefined` variable, a
33+
common technique used is to add an additional parameter to the encapsulation
3434
[anonymous wrapper](#scopes), which gets no argument passed to it.
3535

3636
var undefined = 123;

0 commit comments

Comments
 (0)