obj.toString === obj.__proto__.toString
Missing .
This commit is contained in:
parent
9bba300d69
commit
3204e135b1
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ We can check it like this:
|
|||
let obj = {};
|
||||
|
||||
alert(obj.__proto__ === Object.prototype); // true
|
||||
// obj.toString === obj.__proto__toString == Object.prototype.toString
|
||||
// obj.toString === obj.__proto__.toString == Object.prototype.toString
|
||||
```
|
||||
|
||||
Please note that there is no additional `[[Prototype]]` in the chain above `Object.prototype`:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue