I have a structure like the following:
skillet.person = {
name: {
first: \'\',
last: \'\'
},
age: {
current: \'\'
},
birthday: {
day:
skillet.person.name.first = "blah"
skillet.person.name.last = "ha"
The easiest way.
push
is a method of Array
s that adds a new item to an array.
If you want to replace the value then:
skillet.person.name = { … };
If you want to store multiple (full) names in the object, then you'll need the property to hold an array of objects instead of a single object.