Function isMobile

  • Determines whether the provided user agent string belongs to a mobile device.

    Parameters

    • Optional ua: string

      The user agent string to check.

    Returns boolean

    Returns true if the UA indicates a mobile device, otherwise false.