Function words

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

    Returns

    Parameters

    • str: string
    • count: number

      The number of words to keep.

    • limiter: string = '...'

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

    Returns string

Generated using TypeDoc