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