Answers for "json merge"

0

json merge

let x = { a: 1, b: 2, c: 3 }

let y = {c: 4, d: 5, e: 6 }

let z = Object.assign(x, y)

console.log(z)

// OUTPUTS:
{ a:1, b:2, c:4, d:5, e:6 }
Posted by: Guest on September-01-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language