Answers for "stackoverflow: using es6 spread operator"

0

stackoverflow: using es6 spread operator

let obj1 = { 1: 'one' };
let obj2 = { 2: 'two' };
let obj3 = { ...obj1, ...obj2 };
console.log(obj3);
// { 1: 'one', 2: 'two' }
Posted by: Guest on September-07-2020

Code answers related to "stackoverflow: using es6 spread operator"

Code answers related to "Javascript"

Browse Popular Code Answers by Language