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

Popular posts from this blog

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -

android - MPAndroidChart - How to add Annotations or images to the chart -