app/adapters/basic.js
function compareVersion(version1, version2) {
  version1 = cleanupVersion(version1).split('.');
  version2 = cleanupVersion(version2).split('.');
  for (let i = 0; i < 3; i++) {
    let compared = compare(+version1[i], +version2[i]);
    if (compared !== 0) {
      return compared;
    }
  }
  return 0;
}
function compareVersion(version1, version2) {
  version1 = cleanupVersion(version1).split('.');
  version2 = cleanupVersion(version2).split('.');
  for (let i = 0; i < 3; i++) {
    let compared = compare(+version1[i], +version2[i]);
    if (compared !== 0) {
      return compared;
    }
  }
  return 0;
}
function compareVersion ( version1 , version2 ) { version1 = cleanupVersion ( version1 ) . split ( '.' ) ; version2 = cleanupVersion ( version2 ) . split ( '.' ) ; for ( let i = 0 ; i < 3 ; i ++ ) { let compared = compare ( + version1 [ i ] , + version2 [ i ] ) ; if ( compared !== 0 ) { return compared ; } } return 0 ; }
Compares two Ember versions.

Returns:
`-1` if version < version
0 if version1 == version2
1 if version1 > version2

@param {String} version1
@param {String} version2
@return {Boolean} result of the comparison
Compares two Ember versions .