Answers for "spread operator merge objects"

1

spread operator merge objects

let a = {
    a: 1,
    b: true
}

let b = {
	y: 093,
	z: 'This is an object'
}

const c = {...a, ...b}
Posted by: Guest on September-29-2020
0

Merging Or Copying Arrays Using Spread Operator

let techlist1= ['spring', 'java'];
 let techlist2= ['javascript', 'nodejs', 'mongo'];
 let fullstacklist= […techlist1, …techlist2];
 console.log(fullstacklist);
Posted by: Guest on June-27-2020

Code answers related to "spread operator merge objects"

Code answers related to "Javascript"

Browse Popular Code Answers by Language