@buildtheearth/bot-utils
    Preparing search index...

    Function truncateString

    • Parameters

      • string: string

        The string to truncate

      • length: number

        The length of the truncated string

      • Optionalellipsis: string = "…"

        The ellipsis to use, "..." by default

      Returns string

      The truncated string

      Truncate a string to a certain length