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
Shortest Possable:
let node = [...Array(2)].map(_=>({})) console.log(node)