title: Get functions (methods) of a class
body: <p>I have to dynamically fetch the properties and functions of a ES6 class. Is this even possible? </p>
  
  <p>Using a for...in loop, I only get to loop through the properties of a class instance:</p>
  
  <pre><code>class Foo {
    constructor() {
      this.bar = "hi";
    }
    someFunc() {
      console.log(this.bar);
    }
  }
  var foo = new Foo();
  for (var idx in foo) {
    console.log(idx);
  }
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>bar
  </code></pre>