I would like to automatically determine all of the properties (including the hidden ones) in a given Javascript object, via a generalization of this function:
this works in firebug to find object methods.
Object.getOwnPropertyNames(Math);