For of with index

Seriously, the main point of propsal of that was to get easier iteration, why not :
for(x, i of arr) {

for (const [x, i] of arr.entries()) {}


You saved me a lot of time... Thank you. Are entries necessary there?

Yes, because the default iterator for arrays is values.