From 7e00d1741495f763f986b3a5daf40943db4abc7d Mon Sep 17 00:00:00 2001 From: Bobby <30593201+luciferreeves@users.noreply.github.com> Date: Mon, 7 Nov 2022 10:58:05 -0500 Subject: feat(person): add `zodiacSign()` (#182) Co-authored-by: ST-DDT --- src/modules/person/index.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/modules') diff --git a/src/modules/person/index.ts b/src/modules/person/index.ts index 023cded1..af954d54 100644 --- a/src/modules/person/index.ts +++ b/src/modules/person/index.ts @@ -330,4 +330,18 @@ export class PersonModule { this.faker.definitions.person.title.job ); } + + /** + * Returns a random zodiac sign. + * + * @example + * faker.person.zodiacSign() // 'Pisces' + * + * @since 8.0.0 + */ + zodiacSign(): string { + return this.faker.helpers.arrayElement( + this.faker.definitions.person.western_zodiac_sign + ); + } } -- cgit v1.2.3