Belin.io Core
    Preparing search index...

    Function truncate

    • Truncates the specified string to the given number of characters.

      Parameters

      • value: string

        The string to be truncated.

      • length: number

        The maximum length.

      • ellipsis: string = "..."

        The ellipsis to append to the truncated text.

      Returns string

      The truncated string.