spread operator merge objects
let a = {
a: 1,
b: true
}
let b = {
y: 093,
z: 'This is an object'
}
const c = {...a, ...b}
spread operator merge objects
let a = {
a: 1,
b: true
}
let b = {
y: 093,
z: 'This is an object'
}
const c = {...a, ...b}
Merging Or Copying Arrays Using Spread Operator
let techlist1= ['spring', 'java'];
let techlist2= ['javascript', 'nodejs', 'mongo'];
let fullstacklist= […techlist1, …techlist2];
console.log(fullstacklist);
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us