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

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

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -