src/token.js
function getTokenParameters(index) {
    let stringLength;
    let indexWithOffset;

    indexWithOffset = index;
    for (stringLength = startLength; stringLength <= endLength; stringLength += 1) {
      const offsetCount = variants.length ** stringLength;
      if (indexWithOffset < offsetCount) {
        break;
      } else {
        indexWithOffset -= offsetCount;
      }
    }

    return {
      indexWithOffset,
      stringLength,
    };
  }
function getTokenParameters(index) {
    let stringLength;
    let indexWithOffset;

    indexWithOffset = index;
    for (stringLength = startLength; stringLength <= endLength; stringLength += 1) {
      const offsetCount = variants.length ** stringLength;
      if (indexWithOffset < offsetCount) {
        break;
      } else {
        indexWithOffset -= offsetCount;
      }
    }

    return {
      indexWithOffset,
      stringLength,
    };
  }
function getTokenParameters ( index ) { let stringLength ; let indexWithOffset ; indexWithOffset = index ; for ( stringLength = startLength ; stringLength <= endLength ; stringLength += 1 ) { const offsetCount = variants . length ** stringLength ; if ( indexWithOffset < offsetCount ) { break ; } else { indexWithOffset -= offsetCount ; } } return { indexWithOffset , stringLength , } ; }
calculate length of target combination and index for that particular length
calculate length of target combination and index for that particular length