aboutsummaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/animal/index.ts12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/modules/animal/index.ts b/src/modules/animal/index.ts
index 416fe533..d5d0ef08 100644
--- a/src/modules/animal/index.ts
+++ b/src/modules/animal/index.ts
@@ -153,6 +153,18 @@ export class Animal {
}
/**
+ * Returns a random rodent breed.
+ *
+ * @example
+ * faker.animal.rodent() // 'Cuscomys ashanika'
+ */
+ rodent(): string {
+ return this.faker.helpers.arrayElement(
+ this.faker.definitions.animal.rodent
+ );
+ }
+
+ /**
* Returns a random animal type.
*
* @example