I have a structure like the following:
skillet.person = {
name: {
first: \'\',
last: \'\'
},
age: {
current: \'\'
},
birthday: {
day:
I think that is simpler
let skillet = {
person: {
name : {
first: '',
last : ''
},
age : {
current: ''
},
birthday: {
day : '',
month: '',
year : ''
}
}
};
let update = {
person: {
name: {
first: 'blah',
last : 'ha'
}
}
};
let result = Object.assign(skillet.person, update.person);
console.log(result);