Created
April 14, 2021 13:18
-
-
Save brrd/acbac73d6e2ddf31826810960cf8a7bd to your computer and use it in GitHub Desktop.
Get stack trace
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const trace = new Error().stack.split("\n")[1].replace(/^\s*at\s*/, ""); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment