title: How to retrieve the constructor's name in JavaScript?
body: <p>Assume the following program:</p>
  
  <pre><code>var SomeConstructor = function() { };
  var instance = = new SomeConstructor ();
  </code></pre>
  
  <p>The expression <code>instance  instanceof SomeConstructor</code> yields True, so <code>instance</code> has to know somehow that it was constructed by the function <code>SomeConstructor</code>. Is there way to retrieve the name <code>SomeConstructor</code> directly from <code>instance</code>?</p>
  
  <p>(In my problem at hand, I have a hierarchy of prototypes implementing possible signals in my application. I have to access the type of a signal which shall be equivalent to the constructor used to create that signal.)</p>