Checks if the current device is a mobile device (phone or tablet). Considers both user agent and viewport width for more accurate detection.
True if the device is mobile, false otherwise
import { isMobile } from '@consumidor-positivo/ts-utils';if (isMobile()) { console.log('Running on mobile device');} Copy
import { isMobile } from '@consumidor-positivo/ts-utils';if (isMobile()) { console.log('Running on mobile device');}
Checks if the current device is a mobile device (phone or tablet). Considers both user agent and viewport width for more accurate detection.