aboutsummaryrefslogtreecommitdiff
path: root/src/modules/word
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/word')
-rw-r--r--src/modules/word/index.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules/word/index.ts b/src/modules/word/index.ts
index 22a22a0b..414fe622 100644
--- a/src/modules/word/index.ts
+++ b/src/modules/word/index.ts
@@ -12,6 +12,7 @@ export class WordModule {
if (name === 'constructor' || typeof this[name] !== 'function') {
continue;
}
+
this[name] = this[name].bind(this);
}
}
@@ -392,6 +393,7 @@ export class WordModule {
if (typeof options === 'number') {
options = { count: options };
}
+
const { count = { min: 1, max: 3 } } = options;
return this.faker.helpers