Predict the output.
const src = { nested: { v: 1 } } const copy = Object.assign({}, src) copy.nested.v = 7 console.log(src.nested.v)