See the warning here about using `for...in` with Arrays:

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for...in#Description