Skip to content

Instantly share code, notes, and snippets.

@daltonmenezes
Last active July 22, 2019 20:49
Show Gist options
  • Save daltonmenezes/78a542b40f5d01db3e90da41121bbb1b to your computer and use it in GitHub Desktop.
Save daltonmenezes/78a542b40f5d01db3e90da41121bbb1b to your computer and use it in GitHub Desktop.
Get only path and line number of stack trace errors
const getTrace = error => error.stack.match(/(?<=\().*(?=\))/g)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment