• Return the text cut if length is above maxLength arg and add endTextIfTooLong at the end.

    Parameters

    • text: string

      The text to cut if it is too long.

    • maxLength: number

      The maximum length required.

    • endTextIfTooLong: string = '...'

      The end text to add if it is too long.

    Returns string

    • The text, cut if it was too long.

Generated using TypeDoc