I have a function that uses function as a parameter and I need to get returned value from it
Example:
getFirstMessage(){ foo(()=>{getId()}); }