Hacker News new | ask | show | jobs
by lewisl9029 3851 days ago
Wow. I had no idea that would work.

All this time I've been using the full named function expressions over arrow functions just for the stack traces.

1 comments

Still though, in situations where I care about the stack trace, I don't see myself writing:

  let doStuffCallback = () => {};
  doStuff(doStuffCallback);
over:

  doStuff(function doStuffCallback() {
  });