bower_components/foundation-sites/js/foundation.core.js
function functionName(fn) {
  if (Function.prototype.name === undefined) {
    var funcNameRegex = /function\s([^(]{1,})\(/;
    var results = (funcNameRegex).exec((fn).toString());
    return (results && results.length > 1) ? results[1].trim() : "";
  }
  else if (fn.prototype === undefined) {
    return fn.constructor.name;
  }
  else {
    return fn.prototype.constructor.name;
  }
}
function functionName(fn) {
  if (Function.prototype.name === undefined) {
    var funcNameRegex = /function\s([^(]{1,})\(/;
    var results = (funcNameRegex).exec((fn).toString());
    return (results && results.length > 1) ? results[1].trim() : "";
  }
  else if (fn.prototype === undefined) {
    return fn.constructor.name;
  }
  else {
    return fn.prototype.constructor.name;
  }
}
function functionName ( fn ) { if ( Function . prototype . name === undefined ) { var funcNameRegex = / function\s([^(]{1,})\( / ; var results = ( funcNameRegex ) . exec ( ( fn ) . toString ( ) ) ; return ( results && results . length > 1 ) ? results [ 1 ] . trim ( ) : "" ; } else if ( fn . prototype === undefined ) { return fn . constructor . name ; } else { return fn . prototype . constructor . name ; } }
Polyfill to get the name of a function in IE9
Polyfill to get the name of a function in IE9