➕instanceof
`obj instanceof SomeClass`
JS ⟩ statement ⟩ expression ⟩ operator ⟩ relational ⟩ instanceof
check if SomeClass.prototype
is in the prototype chain of obj
.
obj instanceof SomeClass
Last updated
Was this helpful?
`obj instanceof SomeClass`
JS ⟩ statement ⟩ expression ⟩ operator ⟩ relational ⟩ instanceof
check if SomeClass.prototype
is in the prototype chain of obj
.
obj instanceof SomeClass
Last updated
Was this helpful?