get-function-name-x
Get the name of the function.
module.exports(fn)
⇒ undefined
| string
⏏
This method returns the name of the function, or undefined
if not
a function.
Kind: Exported function
Returns: undefined
| string
- The name of the function, or undefined
if
not a function.
Param | Type | Description |
---|---|---|
fn | function |
The function to get the name of. |
Example
; console; // undefinedconsole; // undefinedconsole; // undefinedconsole; // undefinedconsole; // undefinedconsole; // ''console; // ''console; // 'test1'console; // 'test2'console // 'Test'