Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

concat object

const obj1 = { food: 'pizza', car: 'ford' };
const obj2 = { animal: 'dog' };

const obj3 = { ...obj1, ...obj2 };
console.log(obj3);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #concat #object
ADD COMMENT
Topic
Name
2+3 =