fix: Updating references to typeof tables (#229)

This commit is contained in:
Lucas Santos
2022-04-26 15:42:26 +02:00
committed by GitHub
parent e31310f520
commit 948352913f

View File

@@ -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.