Skip to content

IBrowser : major

major?: string

Major version number of the browser (following semver🡥), derived from the browser.version value following these rules:

browser.version valuebrowser.major valueExample
Starts with a numberFirst number of the version5.1.21214 => 5
Starts with a non-numeric value"" (empty string)X.Y.Z => ""
undefinedundefined-

UAParser.js v2 is licensed under AGPLv3 or PRO licenses.