commit
51be747548
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ The algorithm of `obj instanceof Class` works roughly as follows:
|
|||
alert(rabbit instanceof Animal); // true
|
||||
*/!*
|
||||
|
||||
// rabbit.__proto__ === Rabbit.prototype
|
||||
// rabbit.__proto__ === Animal.prototype (no match)
|
||||
*!*
|
||||
// rabbit.__proto__.__proto__ === Animal.prototype (match!)
|
||||
*/!*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue