Let's say I have a code like the following.
Crafty.c("SomeType",{//do something... });
var obj=Crafty.e("SomeType");
Can anyone tell me whether there is a function to check the type of the object?
Ex:
Crafty.isComponent(obj,"SomeType")==true
or
Crafty.getComponents(obj)=="SomeType"