never use `for (var i in array)`

because javascript is terrible
one more place
Merge pull request #5524 from minrk/no-in-array

never use `for (var i in array)`