Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

extend javascript

function extend(object1, ...object2) {

  let mergedObject = Object.assign(object1, ...object2);
  console.log(mergedObject);

  return mergedObject;
}
 
PREVIOUS NEXT
Tagged: #extend #javascript
ADD COMMENT
Topic
Name
6+2 =