docs: function Scanner(target, cursor, pattern, count, map, stringify) {
    this.target = target;
    this.cursor = cursor;
    this.pattern = pattern;
    this.count = count || 10;
    this.map = map;
    this.stringify = stringify;
  
    // clamp the count
    this.count = Math.max(this.count, 10);
    this.count = Math.min(this.count, 1000);
  }