📱 is-mobile check

👋 FYI, this note is over 6 months old. Some of the content may be out of date.
const parser = require('ua-parser-js')

function isUserAgentSignallingMobile(userAgentString) {
const ua = parser(userAgentString)
return ua.device.type === 'mobile'
}

← Back home