Skip to content

Commit

Permalink
chore: use helpers.objectKey
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinigami92 committed Apr 30, 2022
1 parent 7f9447d commit 6306222
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/finance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -292,10 +292,9 @@ export class Finance {
* faker.finance.creditCardIssuer() // 'discover'
*/
creditCardIssuer(): string {
return this.faker.random.objectElement(
this.faker.definitions.finance.credit_card,
'key'
);
return this.faker.helpers.objectKey(
this.faker.definitions.finance.credit_card
) as string;
}

/**
Expand Down

0 comments on commit 6306222

Please sign in to comment.