Skip to content

Instantly share code, notes, and snippets.

@brrd
Created April 14, 2021 13:18
Show Gist options
  • Save brrd/acbac73d6e2ddf31826810960cf8a7bd to your computer and use it in GitHub Desktop.
Save brrd/acbac73d6e2ddf31826810960cf8a7bd to your computer and use it in GitHub Desktop.
Get stack trace
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