Sparse Arrays & Holes Playground

A hole in the train is a missing wagon: make one with Array(n), Array.from, fill or a literal, then see who skips it and who reads it, and as what: map…

The key idea

A hole is not undefined, and map and forEach pass it over

Try it in this playground