js check if return type of function is vopd code example Example: check if function javascript variableToCheck instanceof Function