title: How to enumerate es6 class methods
body: <p>How can I enumerate methods of an ES6 class? similar to <code>Object.keys</code></p>
  
  <p>Here's an example:</p>
  
  <pre><code>class Callbacks {
    method1() {
    }
  
    method2() {
    }
  }
  
  const callbacks = new Callbacks();
  
  callbacks.enumerateMethods(function(method) {
    // method1, method2 etc.
  });
  </code></pre>