Pinned Loading
-
-
-
Get first function caller from a stack
Get first function caller from a stack 1const getFnCaller = () => {
2const stack = new Error().stack ?? '';
3return stack.split('at ')[3].split(' ')[0];
4};
5
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.