@naverpay/hidash
Version:
improved lodash
13 lines (11 loc) • 350 B
TypeScript
/**
*
* @description
* Repeats a string `n` times using an efficient algorithm.
*
* @param {string} str The string to repeat
* @param {number} n The number of times to repeat the string
* @returns {string} The string that repeats `str` by `n`
*/
declare function repeat(str: string, n: number): string;
export { repeat as default, repeat };