We have two objects like this:
let a = {a : 100}
let b = {b : 200}
a = {...a, ...b}
console.log(a)
{a: 100, b: 200}
To merge them you just can write this code above.
We have two objects like this:
let a = {a : 100}
let b = {b : 200}
a = {...a, ...b}
console.log(a)
{a: 100, b: 200}
To merge them you just can write this code above.
Create a website and earn with Altervista - Disclaimer - Report Abuse - Privacy Policy - Manage tracking preferences