if check at function variable code example Example: check if function javascript variableToCheck instanceof Function