const person = { id: 1, name: { first: "John", last: "Doe" } }; const duplicate = { ...person };
{ id: 1, name: { first: 'John', last: 'Doe' } }