File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ referencing it would result in a `ReferenceError`. This is the only thing
7474In 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.
7676As 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
7979Unless checking whether a variable is defined, ` typeof ` should be avoided at
8080** all costs** .
Original file line number Diff line number Diff line change @@ -29,8 +29,8 @@ value does not change the value of the **type** `undefined`.
2929Still, in order to compare something against the value of ` undefined ` it is
3030necessary 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;
You can’t perform that action at this time.
0 commit comments