@xylabs/function-name
v5.0.86
Published
Base functionality used throughout XY Labs TypeScript/JavaScript libraries
Readme
@xylabs/function-name
Base functionality used throughout XY Labs TypeScript/JavaScript libraries
Reference
@xylabs/function-name
Functions
| Function | Description | | ------ | ------ | | functionName | Returns the name of the calling function by inspecting the stack trace. |
functions
functionName
function functionName(depth?: number): string;Returns the name of the calling function by inspecting the stack trace.
Parameters
| Parameter | Type | Default value | Description |
| ------ | ------ | ------ | ------ |
| depth | number | 2 | The stack frame depth to read the function name from (default: 2). |
Returns
string
The function name, or '' if it cannot be determined.
Part of sdk-js
Maintainers
License
See the LICENSE file for license details
