I want to do the opposite of Get JavaScript function-object from its name as a string?
That is, given:
function foo() {} function bar(callback) {
var name = callback.name;
MDN:
The name property returns the name of a function, or an empty string for anonymous functions:
Live DEMO