411 REFERENCE · Wikibooks
JavaScript/Reserved words/instanceof
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
JavaScript in int Reserved words 0
The instanceof keyword
The instanceof keyword returns true, if the left-hand side of the operator corresponds to the class on the right-hand side.
Syntax
object instanceof class
Examples
theArray = new Array();
if (theArray instanceof Array) {
for (var i = 0; i < theArray.length; i++) {
[…]
}
}
JavaScript in int Reserved words 0