Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "common/util/function-name"

Index

Functions

Functions

getFunctionName

  • getFunctionName(func: Function): string
  • Returns the name of a function. Function.name contains the name of the function. However, Internet Explorer does not implement this property. Therefore, uses Function.name if defined and otherwise extract the name from source

    Parameters

    • func: Function

      the function for which the name is desired

    Returns string

    the name of the function or an empty string for an anonymous function

Generated using TypeDoc