@vsokolov/utils - v0.32.0
    Preparing search index...

    Function truncate

    • Truncate string to n characters

      Parameters

      • str: string

        Stirng to truncate

      • length: number

        Length of string to truncate

      Returns string

      Truncated string