Hosting Solutions
mobile_logo Table of Contents
seal_frontseal_back

instanceof

The instanceof operator is used to check whether a piece of data is of a specified object type.

Syntaxdata instanceof Object

Examples

var people = ["Jack","Paul","Maya"]; alert( people instanceof Array ); /* true */ alert( people instanceof String ); /* false */

JavaScript

Operators

deleteinstanceofnewthistypeofternaryvoid