I have function like this
var getData = function(){
console.log('test');
}
I call it like getData()
I want to get the name of function inside that.
I tried this
arguments.callee.caller.toString()
but i get this error
Error: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them
How can i fix that