Question
Javascript return
I am working on a local service. I want to put in a check for undefined infotable input. The code below fails to save because of the return. Does anyone have any suggestions on how should I can trigger the return of my service if this check fails?
if (typeof newDataInfotable == "undefined"){
logger.warn("data infotable was empty");
return;
}

