index.js
/**
 *  Utility used to determine the name of a function.
 *
 *  @param func The function.
 *
 *  @return The string name of the function; null if anonymous.
 */
Utility used to determine the name of a function.
@param func The function.

@return The string name of the function; null if anonymous.
Utility used to determine the name of a function . @param func The function . @return The string name of the function ; null if anonymous .
function funcname(func) {
  if(typeof func !== 'function') {
    return null;
  }
  return func.name || null;
}
function funcname ( func ) { if ( typeof func !== 'function' ) { return null ; } return func . name || null ; }
Utility used to determine the name of a function.
Utility used to determine the name of a function .