Helpers Submodule
'ua-parser-js/helpers'
List of Built-in Helpers:
Guess for the device vendor from a device model name
Check for an ARM-based Apple Silicon device properties
Check whether the current browser is a Chromium-based browser
Check whether the current window is running inside Electron
Check whether the current window is likely from an EU country
Check whether a user-agent string match with reduced/frozen user-agent pattern
Check whether the current window is a standalone PWA
Code Example
js
import { isFrozenUA } from 'ua-parser-js/helpers';
const regularMobileUA = "Mozilla/5.0 (Linux; Android 9; SM-A205U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.1234.56 Mobile Safari/537.36";
const freezedMobileUA = "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.0.0 Mobile Safari/537.36";
console.log(isFrozenUA(regularMobileUA));
// false
console.log(isFrozenUA(freezedMobileUA));
// true