Skip to content

inMobile ​

Determine whether the code is running in a mobile browser environment.

Usage ​

ts
import { inMobile } from 'rattail'

inMobile() // return true if in mobile browser, false otherwise

Return ​

Type
boolean