How to find hidden properties/methods in Javascript objects?
- by ramanujan
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:
function keys(obj) {
var ll = [];
for(var pp in obj) {
ll.push(pp);
}
return ll;
}
This works for user defined objects but fails for many builtins:
repl>…