packages/fbjs/src/__forks__/UserAgentData.js
function getBrowserVersion(version) {
  if (!version) {
    return {
      major: '',
      minor: '',
    };
  }
  var parts = version.split('.');
  return {
    major: parts[0],
    minor: parts[1],
  };
}
function getBrowserVersion(version) {
  if (!version) {
    return {
      major: '',
      minor: '',
    };
  }
  var parts = version.split('.');
  return {
    major: parts[0],
    minor: parts[1],
  };
}
function getBrowserVersion ( version ) { if ( ! version ) { return { major : '' , minor : '' , } ; } var parts = version . split ( '.' ) ; return { major : parts [ 0 ] , minor : parts [ 1 ] , } ; }
Get the version number in parts. This is very naive. We actually get major
version as a part of UAParser already, which is generally good enough, but
let's get the minor just in case.
Get the version number in parts . This is very naive . We actually get major version as a part of UAParser already which is generally good enough but let s get the minor just in case .