Merge pull request #121 from zhewang2/patch-1
obj.toString === obj.__proto__.toString
This commit is contained in:
commit
d649b46c8e
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