If I have an array like this:
var arr = [\'one\',\'two\',\'three\'];
I can access different parts by doing this:
console.lo
you can create an array that filled with your object fields and use an index on the array and access object properties via that
propertiesName:['pr1','pr2','pr3'] this.myObject[this.propertiesName[0]]