title: javascript get type/instance name
body: <p>Is there a reliable way of getting the instance of a JavaScript object?</p>
  
  <p>For example, relying on the fake '<code>obj.getInstance()</code>' function.</p>
  
  <pre><code>var T = {
      Q: {
          W: {
             C: function() {}
          }
      } 
  };
  
  var x = new T.Q.W.C();
  console.log( x.getInstance() === T.Q.W.C); // should output true
  </code></pre>
  
  <p>If this is not part of the ECMA specification, please include browser/node.js support and compatibility in answers.</p>