Function shortenString

  • Parameters

    • str: string = ""

      The input string to be shortened.

    • len: number = 50

      The maximum length of the shortened string. Default value is 50 if not provided.

    Returns string

    • The shortened string if the length of the input string is greater than the specified length, otherwise the original string.

Generated using TypeDoc