I was toying a bit and was trying to instantiate a new array of length x, where all elements of that array were initialized to a value y:
x
y
You can first fill the array with any value (e.g. undefined), and then you will be able to use map:
fill
undefined
map
var arr = new Array(2).fill().map(u => ({}));
var arr = new Array(2).fill().map(Object);