src/appstate.js
function getFunctionName (fn) {
  var name = fn.toString();
  name = name.substr('function '.length);
  name = name.substr(0, name.indexOf('('));
  return name;
}
function getFunctionName (fn) {
  var name = fn.toString();
  name = name.substr('function '.length);
  name = name.substr(0, name.indexOf('('));
  return name;
}
function getFunctionName ( fn ) { var name = fn . toString ( ) ; name = name . substr ( 'function ' . length ) ; name = name . substr ( 0 , name . indexOf ( '(' ) ) ; return name ; }
Get function name
@param {Function} fn
@returns {String}
Get function name