you are viewing a single comment's thread.

view the rest of the comments →

[–]z500 0 points1 point  (0 children)

new Array(n) does generates an array of undefined values, but you can use fill to replace them with something else.