Documentation
    Preparing search index...

    Function truncateMiddle

    • Returns the given string truncated in the middle with the given or DEFAULT_TRUNCATED_SUBSTRING_LENGTH | default substring length as its prefix and suffix (e.g. ac130bh7dghj5ac13...ghj5).

      Parameters

      • str: string
      • substringLength: number = DEFAULT_TRUNCATED_SUBSTRING_LENGTH

      Returns string