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