javascript - How can i get the calling function name in angular js strict mode -
i have function this
var getdata = function(){ console.log('test'); }
i call getdata()
i want name of function inside that.
i tried this
arguments.callee.caller.tostring()
but error
error: 'caller', 'callee', , 'arguments' properties may not accessed on strict mode functions or arguments objects calls them
how can fix that
Comments
Post a Comment