Champ · Country Code

Champ · Country Code · location.countryCode. Méthode de génération · Exemple

location.countryCode

Options du générateur

Générez des données pour les voir ici.

Paramètres & Exemple

Returns a random ISO_3166-1 country code.

location.countryCode(options?: 'alpha-2' | 'alpha-3' | 'numeric' | { variant?: 'alpha-2' | 'alpha-3' | 'numeric'; })
options
The code to return or an options object.
options.variant
The variant to return. Can be one of: - 'alpha-2' (two-letter code) - 'alpha-3' (three-letter code) - 'numeric' (numeric code) Defaults to 'alpha-2'.

Exemple

"NO"

Utilisez des données synthétiques dans un environnement de test.

Générateurs associés

Explorer les scénarios