Library API
    Preparing search index...

    Function getCaller

    • Analyzes the Call Stack to determine the calling function's name.

      Returns string

      The name of the calling function, or undefined if unresolvable

      function myFunc() { console.log(getCaller()); } // 'myFunc'