packages/fbjs/src/useragent/VersionRange.js
function checkOrExpression(range, version) {
  const expressions = range.split(orRegex);

  if (expressions.length > 1) {
    return expressions.some(range => VersionRange.contains(range, version));
  } else {
    range = expressions[0].trim();
    return checkRangeExpression(range, version);
  }
}
function checkOrExpression(range, version) {
  const expressions = range.split(orRegex);

  if (expressions.length > 1) {
    return expressions.some(range => VersionRange.contains(range, version));
  } else {
    range = expressions[0].trim();
    return checkRangeExpression(range, version);
  }
}
function checkOrExpression ( range , version ) { const expressions = range . split ( orRegex ) ; if ( expressions . length > 1 ) { return expressions . some ( range => VersionRange . contains ( range , version ) ) ; } else { range = expressions [ 0 ] . trim ( ) ; return checkRangeExpression ( range , version ) ; } }
Splits input `range` on "||" and returns true if any subrange matches
`version`.

@param {string} range
@param {string} version
@returns {boolean}
Splits input range on || and returns true if any subrange matches version .