Skip to main content

isMobile

A function that checks whether the environment is a mobile environment.


Code​

🔗 View source code


Interface​

typescript
function isMobile(): boolean

Usage​

typescript
import { isMobile } from '@modern-kit/utils';

if (isMobile()) {
/* Mobile environment is guaranteed */
}