How can I update an object
with another object
?
for example
master = { name: "John", email: "j@j.com" }
child = { phone: "888-333-3999" }
How can I update master
with child
?
Output of master
need to be
{ name: "John", email: "j@j.com", phone: "888-333-3999" }
Also, this is a node.js JavaScript
, I don't want to use jQuery
.