Since JavaScript elements are saved as standard object properties, it is not advisable to iterate through JavaScript arrays using for...in loops because normal ... ... <看更多>
It also goes up to the prototype chain and enumerates over inherited properties. Avoid using for...in loop to iterate over elements of an array, especially when ... ... <看更多>