I'm using a log function to debug in the console. I want to know what function I'm logging from in the browser console. I don't want to use the debugger.
function doSomething() {}
console.log(doSomething.name);
Basically I want the name property from Function.name with out knowing what doSomething is. Is this possible?
Is there some component of JS that tracks what function I'm in and that I have access to.?