react merge objects with same keys 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}