I have this situation:
A JavaScript function A(){} and anotherfunction B(){}.
I call function A in two modes:
- as a parameter of function B --
B(A()); - in standalone form --
A();
Is there a way to sense in code when function A is evaluated as parameter and when is executed as standalone?