code: function checkSimpleExpression(range, version) {
    range = range.trim();
    if (range === '') {
      return true;
    }
  
    const versionComponents = version.split(componentRegex);
    const {modifier, rangeComponents} = getModifierAndComponents(range);
    switch (modifier) {
      case '<':
        return checkLessThan(versionComponents, rangeComponents);
      case '<=':
        return checkLessThanOrEqual(versionComponents, rangeComponents);
      case '>=':
        return checkGreaterThanOrEqual(versionComponents, rangeComponents);
      case '>':
        return checkGreaterThan(versionComponents, rangeComponents);
      case '~':
      case '~>':
        return checkApproximateVersion(versionComponents, rangeComponents);
      default:
        return checkEqual(versionComponents, rangeComponents);
    }
  }
docs: Checks if `range` matches `version`. `range` should be a "simple" range (ie.
  not a compound range using the " - " or "||" operators).
  
  @param {string} range
  @param {string} version
  @returns {boolean}