Doubt in syntax of function shouldTakePlane()

What does this mean
for(let pos in edges){
let edge = edges[pos];

Shouldn’t it be
for(let pos=0;pos<=edges.length;pos++){
let edge = edges[pos];

Hey @Atif-Sufyaan-1976506059127874
for(let pos in edges){
and
for(let pos=0;pos<=edges.length;pos++){
Both iterate pos from 0 to edges.length
Try to print pos in both loops and see once

If your doubt is resolved please mark it as closed.