title: Is there a method that returns all properties of an object in javascript?
body: <p>The <code>Object.keys(obj)</code> returns the own enumerable properties of the object this is analogous to <code>Object.hasOwnProperty()</code> which are true. What I am looking for is a function that would give all properties even from the prototype chain </p>