Iterating over the enumerable properties of an object