I want to do a check whether a function exist or not before trying to run it. Here is my code:
if ($.isFunction(myfunc())) { console.log(\"function exist, ru
try this
if(typeof myfunc == 'function'){ alert("exist"); }else{ alert("not exist"); }