I am having the following object:
obj =
config {
commonId: "id-goes-here",
option1 : {
value : "",
link : "some-link/" + commonId should go here
},
option2 : {
value : "",
link : "some--other-link/" + commonId should go here
},
option3 : {
value : "",
link : "link/" + commonId should go here
},
}
How would one refer to the commonId that's declared within the same object ? I don't think repeating the same ID is good practice..