Function detectOS

  • Infers the OS type from the user agent string.

    Parameters

    • userAgent: string = ...

    Returns OSType