diff options
| author | Shinigami <[email protected]> | 2022-05-01 15:22:39 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-05-01 13:22:39 +0000 |
| commit | c093e4c300a5566faafc85289d2588742db25c5d (patch) | |
| tree | 4e30ceff4ae4008004652dbf1c24e19b16f1d9c5 /src/utils | |
| parent | 1851ecab1e33b6266bb4b4614c814a7674099d01 (diff) | |
| download | faker-c093e4c300a5566faafc85289d2588742db25c5d.tar.xz faker-c093e4c300a5566faafc85289d2588742db25c5d.zip | |
refactor: move some random methods to helpers (#892)
Co-authored-by: ST-DDT <[email protected]>
Diffstat (limited to 'src/utils')
| -rw-r--r-- | src/utils/user-agent.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/user-agent.ts b/src/utils/user-agent.ts index 5ff18c2a..b3438cbd 100644 --- a/src/utils/user-agent.ts +++ b/src/utils/user-agent.ts @@ -62,7 +62,7 @@ export function generate(faker: Faker): string { if (Array.isArray(a)) { //returns a random element from array (a), even weighting - return faker.random.arrayElement(a); + return faker.helpers.arrayElement(a); } if (a && typeof a === 'object') { |
