title: Get object reference, and function name
body: <p>How can i retrieve the reference to object containing a function from an input in the form objectReference["functionName"].</p>
  
  <p>Example:</p>
  
  <pre><code>function aaa(param) {
      var objectReference = /*..???...*/;
      var functionName = /*...???..*/;
  
      // Now expected result is that objectReference contains
      // a reference to myObject, and functionName contains a
      // string with name of function (implemented in myObject),
      // so I can invoke it with objectReference[functionName]()
      // after some manipulation.
  }
  
  var myObject = new SomeFunction();
  
  aaa(myObject["myFunction"]);
  </code></pre>
  
  <p>Thank you</p>