The use of "for in" generates problems when properties or functions are added to the Array object (for instance in the sencha library, that adds the "indexOf", "remove" and "contains" methods), because these properties will be included in the for loop.