Javascript type of custom object
<p>How can I check if my javascript object is of a certain type.</p>

<pre><code>var SomeObject = function() { }
var s1 = new SomeObject();
</code></pre>

<p>In the case above <code>typeof s1</code> will return "object". That's not very helpful. Is there some way to check if s1 is of type SomeObject ?</p>
