How can I check if my javascript object is of a certain type.
var SomeObject = function() { } var s1 = new SomeObject();
In the case above
Yes, using instanceof (MDN link | spec link):
instanceof
if (s1 instanceof SomeObject) { ... }