* Returns a random continent name. * * @example * faker.location.continent() // 'Asia' * * @since 9.1.0
()
| 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. |
no test coverage detected