Function: isMobile()

isMobile(ua?): boolean

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

Parameters

ua?

string

The user agent string to check.

Returns

boolean

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