const target = { a: 1 }; const source1 = { b: 2 }; const source2 = { c: 3 }; Object.assign(target, source1, source2,{d:4}); target // {a:1, b:2, c:3,d:4}