Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

extend javascript

function extend(object1, ...object2) {

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

  return mergedObject;
}
Comment

PREVIOUS NEXT
Code Example
Javascript :: delete item from array vuejs 
Javascript :: return object list in find js 
Javascript :: mongoose in node.js 
Javascript :: promise.all 
Javascript :: how to get the all input element id value 
Javascript :: javascript hide elements by class 
Javascript :: then js 
Javascript :: javascript array to string with commas 
Javascript :: node.js function 
Javascript :: accessing via name jquery 
Javascript :: image view component react js 
Javascript :: adjust color of text js javascript 
Javascript :: expect any function jest 
Javascript :: javascript foreach loop 
Javascript :: jspdf create table 
Javascript :: jquery validation on click 
Javascript :: select selectedindex jquery 
Javascript :: extract content from string html 
Javascript :: how to import json in js 
Javascript :: find smallest length string in an array js 
Javascript :: parse json c# 
Javascript :: remove specific item from array 
Javascript :: javascript remove string between 
Javascript :: async arrow function in javascript 
Javascript :: how to access key value pair in javascript 
Javascript :: javascript insert div into another div 
Javascript :: render react component 
Javascript :: docker remove json log 
Javascript :: js map size 
Javascript :: ng-pick-datetime 
ADD CONTENT
Topic
Content
Source link
Name
3+6 =