stackoverflow 3a using es6 spread operator

Solutions on MaxInterview for stackoverflow 3a using es6 spread operator by the best coders in the world

showing results for - "stackoverflow 3a using es6 spread operator"
Nicola
06 May 2020
1let obj1 = { 1: 'one' };
2let obj2 = { 2: 'two' };
3let obj3 = { ...obj1, ...obj2 };
4console.log(obj3);
5// { 1: 'one', 2: 'two' }
similar questions
queries leading to this page
stackoverflow 3a using es6 spread operator