Function truncate

  • Abbreviates the given string if it exceeds the target length.

    Parameters

    • str: string
    • targetLength: number

    Returns string

Generated using TypeDoc