When we want to merge the properties of 2 objects these are the most convenient options: ... const object1 = { a: 1, b: 2, }; const object2 = Object.assign({ c: 3 ...
確定! 回上一頁