Merge pull request #2744 from LexaWin/patch-1

Error correction
This commit is contained in:
Ilya Kantor 2021-10-25 22:19:43 +03:00 committed by GitHub
commit 51be747548
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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!)
*/!*