Get JavaScript function-object from its name as a string?
<p>In JavaScript, if I have a string in a variable, is there a way to get a reference to the function object which has that matching name? Note that jQuery is available to me so I can use any of its helper methods also.</p>

<p>For example:</p>

<pre><code>myFunction = function(){};

var func_name = "myFunction";
var myFunctionPtr = ???  //how to get the function from the name
</code></pre>

<p>Thanks</p>
