Is there a way for me to loop over a Javascript Object\'s built-in properties?
for...in gets me close to where I want to go, but \"A for...in loop does not iterate over
I realize this question is three years old, but now, with ES5, it is possible:
>>> Object.getOwnPropertyNames(Object)
["prototype", "getPrototypeOf", "getOwnPropertyDescriptor", "keys", "defineProperty", "defineProperties", "create", "getOwnPropertyNames", "isExtensible", "preventExtensions", "freeze", "isFrozen", "seal", "isSealed", "length", "arity", "name", "arguments", "caller"]