I am trying to set an array element as an object Property
Simplified example:
var array = ['a', 'b', 'c'];
var obj = { array[1]: 'good' }
Above causes an error.
Update: In fact, I am passing the object as a part of another array ie a simplified example would be:
aObj[value] = ['one', {array[1]: 'good'}, 'two', 'three', 'four'];
Setting the obj[array[1]] = 'good';
style would mean using
aObj[value][1][array[1]] = 'good';