@consumidor-positivo/ts-utils - v1.16.0
    Preparing search index...

    Function isMobile

    • Checks if the current device is a mobile device (phone or tablet). Considers both user agent and viewport width for more accurate detection.

      Returns boolean

      True if the device is mobile, false otherwise

      import { isMobile } from '@consumidor-positivo/ts-utils';

      if (isMobile()) {
      console.log('Running on mobile device');
      }