docs: function indexInRange(index, rangeLength) {
          var range = calculateRange(rangeLength);
          if (index >= range.min && index <= range.max) {
              return true;
          }
          return false;
      }