Merge pull request #2245 from vsemozhetbyt/patch-13

Fix possibly outdated note in 1.9.6 (instanceof)
This commit is contained in:
Ilya Kantor 2020-10-29 18:43:11 +03:00 committed by GitHub
commit dc415a6473
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,7 +2,7 @@
The `instanceof` operator allows to check whether an object belongs to a certain class. It also takes inheritance into account.
Such a check may be necessary in many cases. Here we'll use it for building a *polymorphic* function, the one that treats arguments differently depending on their type.
Such a check may be necessary in many cases. For example, it can be used for building a *polymorphic* function, the one that treats arguments differently depending on their type.
## The instanceof operator [#ref-instanceof]