How can i create a JS Object that I can call any method on?
<p>I want to create a javascript object that I can call any method on, without having to define them.  Ideally i could call it as if it were a function, and it would call one function i've defined with the name of the function called as its argument. </p>

<p>So i would define an object with a <code>callMethod(methodName)</code> method, and when i called</p>

<pre><code>thisObject.doAThing();
</code></pre>

<p>It would call <code>thisObject.callMethod("doAThing");</code></p>

<p>is this possible in javascript?</p>
