I have an array of objects and I'm looking to use google closure. I need to convert some dot notation to bracket notation.
At the moment, I'm accessing properties in a loop like this:
TheArray[i].MyProp1;
TheArray[i].MyProp2;
When I write
TheArray[i].['MyProp1'];
it doesn't convert. How do I do this conversion to bracket notation in arrays of objects.