Object.keys(): Why no inherited properties?

David Bruant david.bruant at labri.fr
Wed Sep 7 09:08:08 PDT 2011


Le 07/09/2011 17:33, Felipe Gasper a écrit :
> Why does Object.keys() not allow, as an option, iterating through
> inherited properties?
I do not have the answer to this very question.
However, if you want to iterate through all (own and inherited)
enumerable properties, you can use a for-in loop.

David


More information about the es-discuss mailing list