UNPKG

@web3r/flowerkit

Version:

Tree-shakable JavaScript and TypeScript utility library for frontend/browser apps: DOM, events, arrays, objects, strings, date, JSON, and network helpers (ESM/CJS, SSR-friendly).

10 lines (9 loc) 482 B
export type TIsMobileDeviceArgs = Parameters<typeof isMobileDevice>; export type TIsMobileDeviceReturn = ReturnType<typeof isMobileDevice>; /** * Heuristically detects if the current browser is on a mobile device via UA checks. UA-based detection can be unreliable. Prefer feature detection when possible. * @returns {boolean} True if likely a mobile browser * @example * const isMobile = isMobileDevice(); // => boolean */ export declare const isMobileDevice: () => boolean;