File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ set to the `prototype` of the function object that was called.
99
1010If the function that was called has no explicit ` return ` statement, then it
1111implicitly returns the value of ` this ` (the new object). Otherwise it returns
12- the value of the ` return ` statement, ** but** only if ` typeof returnValue ` is
13- ` object ` .
12+ the value of the ` return ` statement, ** but** only if the return value is an
13+ object.
1414
1515 function Foo() {
1616 this.bla = 1;
Original file line number Diff line number Diff line change @@ -5,7 +5,8 @@ The `typeof` operator (together with
55design flaw of JavaScript, as it is near of being ** completely broken** .
66
77Although ` instanceof ` still has its limited uses, ` typeof ` really has only one
8- practical use case, which ** not happens** to be checking the type of an object.
8+ practical use case, which does ** not** happen to be checking the type of an
9+ object.
910
1011> ** Note:** While ` typeof ` can also be called with a function like syntax
1112> i.e. ` typeof(obj) ` , this is not a function call. The two parenthesis will
You can’t perform that action at this time.
0 commit comments