title: Getter/setter on javascript array?
body: <p>Is there a way to get a get/set behaviour on an array? I imagine something like this:</p>
  
  <pre><code>var arr = ['one', 'two', 'three'];
  var _arr = new Array();
  
  for (var i = 0; i &lt; arr.length; i++) {
      arr[i].__defineGetter__('value',
          function (index) {
              //Do something
              return _arr[index];
          });
      arr[i].__defineSetter__('value',
          function (index, val) {
              //Do something
              _arr[index] = val;
          });
  }
  </code></pre>