title: How to get list of all static members of some class in javascript
body: <p>I would like to get list of all static members of some class. For example: I would like to get all static members of <code>Object</code> (like <code>Object.create</code> if avalible and so on). How can I do that?</p>
  
  <p>Example:</p>
  
  <pre><code>var ClassA = function(){}
  ClassA.prototype.getName = function(){return "ClassA";} //public method
  ClassA.alertName = function(){ alert("ClassA");} //static method
  ClassA.doSomething = function(){return "Do something";} //another static method
  </code></pre>
  
  <p>So, if I got more static members, I would like to get at least names of them. In this example I would like to get <code>alertName</code> and <code>doSomething</code>. With public members you can do something like that:</p>
  
  <pre><code>for (i in ClassA.prototype) {
      alert(i);
  }
  </code></pre>
  
  <p>How about with static members?</p>