MCPcopy
hub / github.com/faker-js/faker / type

Method type

src/modules/animal/index.ts:201–203  ·  view source on GitHub ↗

* Returns a random animal type. * * @example * faker.animal.type() // 'crocodile' * * @since 5.5.0

()

Source from the content-addressed store, hash-verified

199 * @since 5.5.0
200 */
201 type(): string {
202 return this.faker.helpers.arrayElement(this.faker.definitions.animal.type);
203 }
204
205 /**
206 * Returns a random pet name.

Callers 3

vehicle.spec.tsFile · 0.45
database.spec.tsFile · 0.45
animal.spec.tsFile · 0.45

Calls 1

arrayElementMethod · 0.80

Tested by

no test coverage detected