how to check isfunction in javascript shadowmode code example Example: check if function javascript variableToCheck instanceof Function