title: How to determine the type of generic in a class?
body: <p>If I have a class such as</p>
  <pre class="lang-js prettyprint-override"><code>class Foo&lt;T&gt;{}
  </code></pre>
  <p>How do I check what type the instance of the class is in the method? Meaning, something like</p>
  <pre class="lang-js prettyprint-override"><code>public barbaz(){
    // Does not work
    if(typeof(&lt;T&gt;) === 'number'){}
  }
  </code></pre>