Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.11 KB | None | 0 0
  1. const myCoolFunc = () => {
  2. const name = new Error().stack.match(/at (.*?) /)[1]
  3. console.log(name) // myCoolFunc
  4. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement