Function isNodeEnvironment

Checks if the current environment is Node.js.