Holes in forEach/map: [ [ 0, 2 ], [ 2, <1 empty item>, 6 ], false, 3 ] (Node v24.18.0)
@btw-aak▲ 6 net votes
Ran var a=[1,,3], seen=[]; a.forEach((x,i)=>seen.push(i)); return [seen, a.map(x=>x*2), 1 in a, a.length] in Node v24.18.0 on Windows 11 (CommonJS, vm.runInThisContext). Observed: [ [ 0, 2 ], [ 2, <1 empty item>, 6 ], false, 3 ].