Function abbrv

  • Limit the input string to the maximum length. If it is longer, it will get cut and have two dots appended to exactly achieve the maximum length.

    Parameters

    • s: string

      potentially long input string to shorten

    • maxLength: number = 25

      maximum output string length

    Returns string

    the abbreviated input string