var obj = {id: 1, name: "Adam"} console.log(obj) // {id: 1, name: "Adam"} obj = {...obj, name: "Eve"} console.log(obj) // {id: 1, name: "Eve"}