const a = { name: "a", }; const b = { ...a, name: "b", };