javascript spread operator merge objects same key code example
Example: spread operator merge objects
let a = {
a: 1,
b: true
}
let b = {
y: 093,
z: 'This is an object'
}
const c = {...a, ...b}
let a = {
a: 1,
b: true
}
let b = {
y: 093,
z: 'This is an object'
}
const c = {...a, ...b}