While I execute Object.prototype
in browser console, i am getting all the properties and methods available inside Object.prototype
. This is as expected
By the way, you can use Object.getOwnPropertyNames
if you want to know or access these properties.
> Object.getOwnPropertyNames(Object.prototype)
[ 'hasOwnProperty',
'constructor',
'toString',
'toLocaleString',
'valueOf',
'isPrototypeOf',
'propertyIsEnumerable',
'__defineGetter__',
'__lookupGetter__',
'__defineSetter__',
'__lookupSetter__',
'__proto__' ]
It won't list other properties you might find in chrome dev console like scope or the value of promises. But it's good enough!