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:
Object.getOwnPropertyNames won't return "the hidden ones". Object.getOwnPropertyNames returns the names of non-inherited properties.
Object.getOwnPropertyNames