Function isRunningIn

  • Checks if the program is running in the specified runtime.

    Parameters

    • runtimeFor: "browser" | "node"

      Runtime environment to check for.

    Returns boolean

    true if the program is running in the specified runtime.

    Use isRuntime instead.