From a65f1a2b59b909c4b5cc044af560ff91642c9a56 Mon Sep 17 00:00:00 2001 From: Nahum Gamaliel Santana <37852973+LordFitoi@users.noreply.github.com> Date: Sat, 30 Jul 2022 07:02:16 -0400 Subject: feat: add rodent breed on animal 'en' locale (#1136) --- src/modules/animal/index.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/modules') 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 @@ -152,6 +152,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. * -- cgit v1.2.3