0

How can I change 'duplicate' object properties? (js)

I have an object with this structure: object{ tree1 tree2[{ data1 data2 }, { data1 data2 } ] } And I want to change data 1, but only one if the two. How can I do this?

17th Mar 2018, 8:50 AM
Manuel 48
Manuel 48 - avatar
1 Answer
0
object.tree2[0].data2 = value;
21st Mar 2018, 7:58 PM
BraveHornet
BraveHornet - avatar