Function strRepeat

  • Repeats the given string n times.

    Parameters

    • input: string

      The string to repeat.

    • n: number

      The number of times to repeat the string.

    Returns string

    Example

    strRepeat('abc', 3);;
    //=> 'abcabcabc'

Generated using TypeDoc