aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/helpers.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helpers.ts b/src/helpers.ts
index 2b1be94b..385d4f3e 100644
--- a/src/helpers.ts
+++ b/src/helpers.ts
@@ -306,7 +306,7 @@ export class Helpers {
* faker.helpers.repeatString('Hello world! ', 1) // 'Hello world! '
* faker.helpers.repeatString('Hello world! ', 2) // 'Hello world! Hello world! '
*/
- repeatString(string: string, num = 0): string {
+ repeatString(string = '', num = 0): string {
let text = '';
for (let i = 0; i < num; i++) {
text += string.toString();