method to determine if something is a function javascript code example Example: check if function javascript variableToCheck instanceof Function