There is keys
method in Object
, for example:
Object.keys(object)
But this return object’s own properties and methods only.
To list all properties and methods of an object I know 2 possibilities:
console.dir(object)
method in firebug console for Firefox anddir(object)
method in Google Chrome development tools.