From 2d93e6f14a5ba976f87b71202bc4e011e38ee823 Mon Sep 17 00:00:00 2001 From: Shinigami Date: Sat, 31 Dec 2022 12:22:38 +0100 Subject: chore: turn on padding-line-between-statements (#1691) --- src/modules/word/index.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/modules/word') 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 -- cgit v1.2.3