title: How would you overload the [] operator in javascript
body: <p>I can't seem to find the way to overload the <code>[]</code> operator in javascript.  Anyone out there know?</p>
  <p>I was thinking on the lines of ...</p>
  <pre><code>MyClass.operator.lookup(index)
  {
      return myArray[index];
  }
  </code></pre>
  <p>or am I not looking at the right things.</p>