Options
All
  • Public
  • Public/Protected
  • All
Menu

Module string/repeat

Index

References

Functions

References

Renames and re-exports repeat

Functions

  • repeat(n: number, a: string): string
  • repeat(n: number): (a: string) => string
  • Returns a string containing a repeated identical value.

    example
     repeat(5, 'h'); //=> 'hhhhh'
    

    Parameters

    • n: number

      The number to repeat value.

    • a: string

    Returns string

    A new string containing n values.

  • Returns a string containing a repeated identical value.

    example
     repeat(5, 'h'); //=> 'hhhhh'
    

    Parameters

    • n: number

      The number to repeat value.

    Returns (a: string) => string

    A new string containing n values.

      • (a: string): string
      • Parameters

        • a: string

        Returns string

Generated using TypeDoc