We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent faa6fea commit d41997dCopy full SHA for d41997d
concepts/type-checking/about.md
@@ -48,7 +48,7 @@ For [historical reasons][`typeof null` is `"object"`].
48
For checking the type of an object, you can use the `instanceof` operator.
49
It evaluates into a `boolean` depending on whether the second operand is included in the first operands' [prototype chain][prototype chain].
50
To clarify, `instanceof` will return whether the first operand is an instance of second operand or one of its child classes.
51
-`instanceof` only works for compound data types, such as arrays and objects.
+`instanceof` only works on objects.
52
53
```javascript
54
class Beverage {
0 commit comments