title: backbone.js set model array property
body: <p>I have a backbone.js model with an array as a property:</p>
  
  <pre><code>defaults: {
      myArray : [0,1,2]
  }
  </code></pre>
  
  <p>I'm trying to set the value for a particular index.</p>
  
  <pre><code>var myIndex = 1;
  myModel.set({"myArray"[myIndex] : newVal}); //doesn't work
  myModel.set({"myArray[myIndex]": newVal}); //doesn't work
  myModel.set({"myArray" + "[" + myIndex + "]": newVal}); //doesn't work
  </code></pre>
  
  <p>What's the proper syntax to get/set array properties? Thanks.</p>