I'd like to know if it's possible to get the name of the function which has this function in its parameters.
A practical example:
function foo () {
console.log(somethingHere) --> 'bar'
return true;
}
function bar (param1, param2) {}
bar(foo(), 'something');