I have an object on my scope, the_data, which has multiple objects inside it.
One object, important_entries has a list of objects inside it.
The objects inside important_entries all have a specific field I want to change - field_I_want_to_change. The name of each of these objects is it's Id.
What I want to do is iterate over the important_entries object and for each object in it, change the value of each field_I_want_to_change field.
Could someone possibly give me some pointers as to how best to accomplish this? I have access to the underscore library, if that can be of any use.
Here is a rough blueprint of my the_data object, I apologise for any syntax errors.
the_data : {
some_data : {},
some_data : {},
important_entries: {
xxxccc : {
field_I_want_to_change: 'some data'
},
cccfff : {
field_I_want_to_change: 'some data'
},
tttyyy : {
field_I_want_to_change: 'some data'
},
},
some_data : {},
some_data : {}
}