mirror of
https://github.com/denysdovhan/wtfjs.git
synced 2026-03-13 08:42:20 +08:00
fix: Updating references to typeof tables (#229)
This commit is contained in:
@@ -814,9 +814,9 @@ null instanceof Object; // false
|
||||
|
||||
The behavior of `typeof` operator is defined in this section of the specification:
|
||||
|
||||
- [**12.5.5** The `typeof` Operator](https://www.ecma-international.org/ecma-262/#sec-typeof-operator)
|
||||
- [**13.5.3** The `typeof` Operator](https://262.ecma-international.org/12.0/#sec-typeof-operator)
|
||||
|
||||
According to the specification, the `typeof` operator returns a string according to [Table 35: `typeof` Operator Results](https://www.ecma-international.org/ecma-262/#table-35). For `null`, ordinary, standard exotic and non-standard exotic objects, which do not implement `[[Call]]`, it returns the string `"object"`.
|
||||
According to the specification, the `typeof` operator returns a string according to [Table 37: `typeof` Operator Results](https://262.ecma-international.org/12.0/#table-typeof-operator-results). For `null`, ordinary, standard exotic and non-standard exotic objects, which do not implement `[[Call]]`, it returns the string `"object"`.
|
||||
|
||||
However, you can check the type of an object by using the `toString` method.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user