es6 how to check is function code example Example: check if function javascript variableToCheck instanceof Function