Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get class of object javascript

class Dog{}
var dog = new Dog();
if(dog instanceof Dog){
  console.log("Is dog");
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #class #object #javascript
ADD COMMENT
Topic
Name
6+2 =