stackoverflow 3a using es6 spread operator

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

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
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