title: Get name as String from a Javascript function reference?
body: <p>I want to do the opposite of <a href="https://stackoverflow.com/questions/773184/get-javascript-function-object-from-its-name-as-a-string">Get JavaScript function-object from its name as a string?</a></p>
  
  <p>That is, given:</p>
  
  <pre><code>function foo()
  {}
  
  function bar(callback)
  {
    var name = ???; // how to get "foo" from callback?
  }
  
  bar(foo);
  </code></pre>
  
  <p>How do I get the name of the function behind a reference?</p>