Function: getFunctionName()

getFunctionName(f: AnyFunction): string

Defined in: pkg/function-name/src/index.ts:12

Returns the name of the given function. If the displayName property is present, it is used in preference to name.

Parameters

Parameter Type
f AnyFunction

Returns

string