Oct 19, 2019 in JavaScript
Q: How can you get the reference of a caller function inside a function?

1 Answer

Oct 19, 2019
The arguments object has a callee property, which refers to the function you're inside of. For example −

function func() {

   return arguments.callee;


func();                // ==> func
Click here to read more about JavaScript
Click here to read more about Insurance

Related questions

May 20 in React JS
May 13 in Oracle
Jun 11 in C++