I found that 'keys' property was not inherited in my object, when testing the below code:
var obj = {x: 0, y:1};
console.log (Object.keys); //function
console.log (obj.keys); //undefined
So, my understanding is that some of the properties (in Object) are not inherited in user defined objects. Why? Are those properties only available through Object object? Is there any hack to get the properties list that are not available or inherited in user-defined objects?