Subject pretty clear. Array(4) instantiates a 4-element array, so running map that yields the string "foo" should result in an array with four "foo" strings in it.
But it doesn't. In NodeJS it yields <4 empty items>
. Why?
I get that empty is not the same as undefined (as per JS documentation on the Array constructor), but why isn't it iterating the way I expect?