Why does the `map` method apparently not work on arrays created via `new Array(count)`?
I had a task that I only knew the length of the array and needed to transform the items. I wanted to do something like this: let arr = new Array(10).map((val,idx) => idx); To quickly create an array like this: [0,1,2,3,4,5,6,7,8,9] But it didn’t work because: (see Jonathan Lonowski’s answer) The solution could be to … Read more