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

Method continent

src/modules/location/index.ts:456–460  ·  view source on GitHub ↗

* Returns a random continent name. * * @example * faker.location.continent() // 'Asia' * * @since 9.1.0

()

Source from the content-addressed store, hash-verified

454 * @since 9.1.0
455 */
456 continent(): string {
457 return this.faker.helpers.arrayElement(
458 this.faker.definitions.location.continent
459 );
460 }
461
462 /**
463 * Returns a random [ISO_3166-1](https://en.wikipedia.org/wiki/ISO_3166-1) country code.

Callers 1

location.spec.tsFile · 0.80

Calls 1

arrayElementMethod · 0.80

Tested by

no test coverage detected