aboutsummaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/person/index.ts14
1 files changed, 14 insertions, 0 deletions
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
+ );
+ }
}