import { set } from 'deleight/object/shared'
let obj1 = { a: 1, b: 2, c: 3 }, obj2 = { a: 1, b: 2, c: 3 };
const objects = { a: [obj1], b: [obj2], c: [obj1] };
set(objects, 20);
console.log(obj1); // { a: 20, b: 2, c: 20}
console.log(obj2); // { a: 1, b: 20, c: 3}
Sets specified properties in different objects.
Both simple and complex values can be set to implement any form of reactivity we want.