If we create an array of objects using new Array(3).fill({}); and then add any key in any of the objects, it gets reflected in all the 3 objects.
I made an array of objects like: const arr = new Array(3).fill({});
And then I tried doing arr[0][key] = "value"
This updated the key in all 3 objects in the array.