window.objects
или var objects
.var storage={add:(key,value)=>{if(typeof(storage[key]) ==='undefined')storage[key]=value;}}
storage.add(123,{value:0});
// использование
let a = storage[123];
console.log(a.value); // 0
let b = storage[123];
console.log(b.value); // 0
b.value = 10;
console.log(a.value); // 10
console.log(b.value); // 10