Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript combine objects

const obj1 = {'a': 1, 'b': 2};
const obj2 = {'c': 3};
const obj3 = {'d': 4};

const objCombined = {...obj1, ...obj2, ...obj3};
Source by medium.com #
 
PREVIOUS NEXT
Tagged: #javascript #combine #objects
ADD COMMENT
Topic
Name
2+4 =