Skip to content

IBrowser . major

Major version number of the browser (following semver🡭), derived from the first number in browser.version.

TIP

  • If the first token in browser.version is a number, then major is the first number (e.g 5.1.21214 would be 5)
  • If the first token in browser.version is not a number, then major is "" (an empty string)
  • If the browser has no browser.version, then major is undefined

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