title: List All Prototype Properties of a Javascript Object
body: <p>Is there any other way to look up for the prototype properties of an javascript object. Lets say I have like this.</p>
  
  <pre><code>function proton() {
      this.property1 = undefined;
      this.property2 = undefined;
  };
  
  proton.prototype = {
  
      sample1 : function() {
          return 'something';
      },
  
      sample2 : function() {
          return 'something';
      }
  
  };
  
  var my_object = new proton();
  
  console.log(Object.keys(my_object));
  </code></pre>
  
  <p>returns ["property1", "property2"]</p>
  
  <pre><code>console.log(Object.getOwnPropertyNames(my_object));
  </code></pre>
  
  <p>returns ["property1", "property2"]</p>
  
  <p>But what i want to print is the prototype properties of the object my_object.</p>
  
  <p>['sample1', 'sample2']</p>
  
  <p>In order for me to see the prototype properties of that object i need to console.log(object) and from developer tools i can look up for the properties of that object.</p>
  
  <p>But since I am using third party libraries like phaser.js, react.js, create.js
  so i don't know the list of the prototype properties of a created object from this libraries.</p>
  
  <p>Is there any prototype function of Object to list down all the prototpye properties of a javascript object?</p>