function setFunctionName(name) {
  return name || '(anonymous)'
}
Uses function name if truthy
otherwise it defaults to (anonymous)

@param {string} name name of function
@returns {string} function name or (anonymous)