@@ -33,7 +33,7 @@ object.
33
33
{} Object object
34
34
new Object() Object object
35
35
36
- In the above table * Type* refers to the value, that the ` typeof ` operator returns.
36
+ In the above table, * Type* refers to the value that the ` typeof ` operator returns.
37
37
As can be clearly seen, this value is anything but consistent.
38
38
39
39
The * Class* refers to the value of the internal ` [[Class]] ` property of an object.
@@ -42,7 +42,7 @@ The *Class* refers to the value of the internal `[[Class]]` property of an objec
42
42
> following strings. ` Arguments ` , ` Array ` , ` Boolean ` , ` Date ` , ` Error ` ,
43
43
> ` Function ` , ` JSON ` , ` Math ` , ` Number ` , ` Object ` , ` RegExp ` , ` String ` .
44
44
45
- In order to retrieve the value of ` [[Class]] ` one has to make use of the
45
+ In order to retrieve the value of ` [[Class]] ` , one has to make use of the
46
46
` toString ` method of ` Object.prototype ` .
47
47
48
48
### The Class of an Object
@@ -77,7 +77,7 @@ referencing it would result in a `ReferenceError`. This is the only thing
77
77
### In Conclusion
78
78
79
79
In order to check the type of an object, it is highly recommended to use
80
- ` Object.prototype.toString ` ; as this is the only reliable way of doing so.
80
+ ` Object.prototype.toString ` because this is the only reliable way of doing so.
81
81
As shown in the above type table, some return values of ` typeof ` are not defined
82
82
in the specification; thus, they can differ across various implementations.
83
83
0 commit comments