https://codetofun.com/jquery/isfunction/
jQuery jQuery.isFunction() Method