1let filledArray = new Array(10)
2 .fill(null)
3 .map(()=> ({'hello':'goodbye'}))
4
5// In this approach, we are creating an array with ten empty slots,
6// then filling those slots with the null value,
7// then creating a new array with unique objects.
8// Now when we change an object in the array,
9// we are only changing a specific object, not a reference to an object.