Swapped for…in for a for loop to prevent enumeration issues with Array.prototype extensions