Function limit

  • limit(str: string, count: number, limiter?: string): string
  • Limit the number of characters on the string.

    Returns

    Parameters

    • str: string
    • count: number

      The number of characters to keep.

    • limiter: string = '...'

      The string to be appended at the end after the limit.

    Returns string

Generated using TypeDoc