Just ran into this. It sure would be convenient to be able to use Array(n).map
.
Array(3)
yields roughly {length: 3}
[undefined, undefined, undefined]
creates the numbered properties:
{0: undefined, 1: undefined, 2: undefined, length: 3}
.
The map() implementation only acts on defined properties.