Function detectEnvironment

  • Detects the environment: node, browser or react-native.

    Returns Environment

    The environment.