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, thenmajor
is the first number (e.g5.1.21214
would be5
) - If the first token in
browser.version
is not a number, thenmajor
is""
(an empty string) - If the browser has no
browser.version
, thenmajor
isundefined