UNPKG

parallel-es

Version:
9 lines (8 loc) 448 B
/** * 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 * @param func the function for which the name is desired * @returns the name of the function or an empty string for an anonymous function */ export declare function getFunctionName(func: Function): string;