DEV Community

Discussion on: Is there a suitable equivalent to `Function.caller` in modern JS?

baenencalin profile image
Calin Baenen Author

That's the approach I'm going for now, but it would have been nice if Function.prototype.caller still existed, because then I could just make a getter function for each key, and call it a day.
Sadly, symbols can still be exposed, unless you want to work with Proxys.