Answers for "update a certain key in dictionary javascript"

0

update a certain key in dictionary javascript

const target = {c: 4, d: 5}
const source = {a: 1, b: 2, c: 3};

const newObj = Object.assign({}, target, source);

console.log(newObj); //=> {a: 1, b: 2, c: 3, d: 5}
Posted by: Guest on June-05-2021

Code answers related to "update a certain key in dictionary javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language