> This is true for Vue and Javascript.
This is not true for javascript at all.
for (x in [6,1,6,2,6,3]) {
console.log(x);
}
Please run this in any javascript runtime.