Skip to content

Instantly share code, notes, and snippets.

@MindaugasR
Last active January 17, 2016 20:15
Show Gist options
  • Save MindaugasR/44d28df577c26d374419 to your computer and use it in GitHub Desktop.
Save MindaugasR/44d28df577c26d374419 to your computer and use it in GitHub Desktop.
JavaScript Countries
var Country = {
countries: {
"AC": {
countryName: "ASCENSION ISLAND",
countryCode: "247",
currencyCode: "EURO"
},
"AF": {
countryName: "AFGHANISTAN",
countryCode: "93",
currencyCode: ""
},
"AX": {
countryName: "ALAND",
countryCode: "",
currencyCode: ""
},
"AL": {
countryName: "ALBANIA",
countryCode: "355",
currencyCode: ""
},
"DZ": {
countryName: "ALGERIA",
countryCode: "213",
currencyCode: ""
},
"AD": {
countryName: "ANDORRA",
countryCode: "376",
currencyCode: "EURO"
},
"AO": {
countryName: "ANGOLA",
countryCode: "244",
currencyCode: ""
},
"AI": {
countryName: "ANGUILLA",
countryCode: "1",
currencyCode: ""
},
"AQ": {
countryName: "ANTARCTICA",
countryCode: "",
currencyCode: ""
},
"AG": {
countryName: "ANTIGUA AND BARBUDA",
countryCode: "1",
currencyCode: ""
},
"AR": {
countryName: "ARGENTINA REPUBLIC",
countryCode: "54",
currencyCode: ""
},
"AM": {
countryName: "ARMENIA",
countryCode: "374",
currencyCode: ""
},
"AW": {
countryName: "ARUBA",
countryCode: "297",
currencyCode: ""
},
"AU": {
countryName: "AUSTRALIA",
countryCode: "61",
currencyCode: "AUD"
},
"AT": {
countryName: "AUSTRIA",
countryCode: "43",
currencyCode: "EURO"
},
"AZ": {
countryName: "AZERBAIJAN",
countryCode: "994",
currencyCode: ""
},
"BS": {
countryName: "BAHAMAS",
countryCode: "1",
currencyCode: ""
},
"BH": {
countryName: "BAHRAIN",
countryCode: "973",
currencyCode: ""
},
"BD": {
countryName: "BANGLADESH",
countryCode: "880",
currencyCode: ""
},
"BB": {
countryName: "BARBADOS",
countryCode: "1",
currencyCode: ""
},
"BY": {
countryName: "BELARUS",
countryCode: "375",
currencyCode: ""
},
"BE": {
countryName: "BELGIUM",
countryCode: "32",
currencyCode: "EURO"
},
"BZ": {
countryName: "BELIZE",
countryCode: "501",
currencyCode: ""
},
"BJ": {
countryName: "BENIN",
countryCode: "229",
currencyCode: ""
},
"BM": {
countryName: "BERMUDA",
countryCode: "1",
currencyCode: ""
},
"BT": {
countryName: "BHUTAN",
countryCode: "975",
currencyCode: ""
},
"BO": {
countryName: "BOLIVIA",
countryCode: "591",
currencyCode: ""
},
"BA": {
countryName: "BOSNIA AND HERZEGOVINA",
countryCode: "387",
currencyCode: ""
},
"BW": {
countryName: "BOTSWANA",
countryCode: "267",
currencyCode: ""
},
"BV": {
countryName: "BOUVET ISLAND",
countryCode: "",
currencyCode: ""
},
"BR": {
countryName: "BRAZIL",
countryCode: "55",
currencyCode: ""
},
"IO": {
countryName: "BRITISH INDIAN OCEAN TERR",
countryCode: "",
currencyCode: "USD"
},
"VG": {
countryName: "BRITISH VIRGIN ISLANDS",
countryCode: "1",
currencyCode: "USD"
},
"BN": {
countryName: "BRUNEI DARUSSALAM",
countryCode: "",
currencyCode: ""
},
"BG": {
countryName: "BULGARIA",
countryCode: "359",
currencyCode: ""
},
"BF": {
countryName: "BURKINA FASO",
countryCode: "226",
currencyCode: ""
},
"BI": {
countryName: "BURUNDI",
countryCode: "257",
currencyCode: ""
},
"KH": {
countryName: "CAMBODIA",
countryCode: "855",
currencyCode: ""
},
"CM": {
countryName: "CAMEROON",
countryCode: "237",
currencyCode: ""
},
"CA": {
countryName: "CANADA",
countryCode: "1",
currencyCode: "CAD"
},
"CV": {
countryName: "CAPE VERDE",
countryCode: "238",
currencyCode: ""
},
"KY": {
countryName: "CAYMAN ISLANDS",
countryCode: "1",
currencyCode: ""
},
"CF": {
countryName: "CENTRAL AFRICAN REPUBLIC",
countryCode: "236",
currencyCode: ""
},
"TD": {
countryName: "CHAD",
countryCode: "235",
currencyCode: ""
},
"CL": {
countryName: "CHILE",
countryCode: "56",
currencyCode: ""
},
"CN": {
countryName: "PEOPLEĆÆĀæĀ½S REPUBLIC OF CHINA",
countryCode: "",
currencyCode: ""
},
"CX": {
countryName: "CHRISTMAS ISLANDS",
countryCode: "",
currencyCode: "AUD"
},
"CC": {
countryName: "COCOS ISLANDS",
countryCode: "",
currencyCode: "AUD"
},
"CO": {
countryName: "COLOMBIA",
countryCode: "57",
currencyCode: "COP"
},
"KM": {
countryName: "COMORAS",
countryCode: "",
currencyCode: ""
},
"CG": {
countryName: "CONGO",
countryCode: "242",
currencyCode: ""
},
"CD": {
countryName: "CONGO (DEMOCRATIC REPUBLIC)",
countryCode: "",
currencyCode: ""
},
"CK": {
countryName: "COOK ISLANDS",
countryCode: "682",
currencyCode: "NZD"
},
"CR": {
countryName: "COSTA RICA",
countryCode: "506",
currencyCode: ""
},
"CI": {
countryName: "COTE D IVOIRE",
countryCode: "",
currencyCode: ""
},
"HR": {
countryName: "CROATIA",
countryCode: "385",
currencyCode: ""
},
"CU": {
countryName: "CUBA",
countryCode: "53",
currencyCode: ""
},
"CY": {
countryName: "CYPRUS",
countryCode: "357",
currencyCode: "EURO"
},
"CZ": {
countryName: "CZECH REPUBLIC",
countryCode: "420",
currencyCode: ""
},
"DK": {
countryName: "DENMARK",
countryCode: "45",
currencyCode: "DKK"
},
"DJ": {
countryName: "DJIBOUTI",
countryCode: "253",
currencyCode: ""
},
"DM": {
countryName: "DOMINICA",
countryCode: "1",
currencyCode: ""
},
"DO": {
countryName: "DOMINICAN REPUBLIC",
countryCode: "1",
currencyCode: "DPO"
},
"TP": {
countryName: "EAST TIMOR",
countryCode: "670",
currencyCode: ""
},
"EC": {
countryName: "ECUADOR",
countryCode: "593",
currencyCode: "USD"
},
"EG": {
countryName: "EGYPT",
countryCode: "20",
currencyCode: "POUND"
},
"SV": {
countryName: "EL SALVADOR",
countryCode: "503",
currencyCode: "USD"
},
"GQ": {
countryName: "EQUATORIAL GUINEA",
countryCode: "240",
currencyCode: ""
},
"EE": {
countryName: "ESTONIA",
countryCode: "372",
currencyCode: ""
},
"ET": {
countryName: "ETHIOPIA",
countryCode: "251",
currencyCode: ""
},
"FK": {
countryName: "FALKLAND ISLANDS",
countryCode: "",
currencyCode: "POUND"
},
"FO": {
countryName: "FAROE ISLANDS",
countryCode: "298",
currencyCode: "DKK"
},
"FJ": {
countryName: "FIJI",
countryCode: "679",
currencyCode: ""
},
"FI": {
countryName: "FINLAND",
countryCode: "358",
currencyCode: "EURO"
},
"FR": {
countryName: "FRANCE",
countryCode: "33",
currencyCode: "EURO"
},
"FX": {
countryName: "FRANCE METROPOLITAN",
countryCode: "",
currencyCode: ""
},
"GF": {
countryName: "FRENCH GUIANA",
countryCode: "594",
currencyCode: "EURO"
},
"PF": {
countryName: "FRENCH POLYNESIA",
countryCode: "689",
currencyCode: ""
},
"TF": {
countryName: "FRENCH SOUTHERN TERRITORIES",
countryCode: "",
currencyCode: "EURO"
},
"GA": {
countryName: "GABON",
countryCode: "241",
currencyCode: ""
},
"GM": {
countryName: "GAMBIA",
countryCode: "220",
currencyCode: ""
},
"GE": {
countryName: "GEORGIA",
countryCode: "995",
currencyCode: "GEL"
},
"DE": {
countryName: "GERMANY",
countryCode: "49",
currencyCode: "EURO"
},
"GH": {
countryName: "GHANA",
countryCode: "233",
currencyCode: ""
},
"GI": {
countryName: "GIBRALTER",
countryCode: "",
currencyCode: "POUND"
},
"GR": {
countryName: "GREECE",
countryCode: "30",
currencyCode: "EURO"
},
"GL": {
countryName: "GREENLAND",
countryCode: "299",
currencyCode: "DKK"
},
"GD": {
countryName: "GRENADA",
countryCode: "1",
currencyCode: ""
},
"GP": {
countryName: "GUADELOUPE",
countryCode: "590",
currencyCode: "EURO"
},
"GU": {
countryName: "GUAM",
countryCode: "1",
currencyCode: "USD"
},
"GT": {
countryName: "GUATEMALA",
countryCode: "502",
currencyCode: ""
},
"GN": {
countryName: "GUINEA",
countryCode: "224",
currencyCode: ""
},
"GW": {
countryName: "GUINEA-BISSAU",
countryCode: "245",
currencyCode: ""
},
"GY": {
countryName: "GUYANA",
countryCode: "592",
currencyCode: ""
},
"HT": {
countryName: "HAITI",
countryCode: "509",
currencyCode: ""
},
"HM": {
countryName: "HEARD & MCDONALD ISLAND",
countryCode: "",
currencyCode: "AUD"
},
"HN": {
countryName: "HONDURAS",
countryCode: "504",
currencyCode: ""
},
"HK": {
countryName: "HONG KONG",
countryCode: "852",
currencyCode: "HKD"
},
"HU": {
countryName: "HUNGARY",
countryCode: "36",
currencyCode: ""
},
"IS": {
countryName: "ICELAND",
countryCode: "354",
currencyCode: ""
},
"IN": {
countryName: "INDIA",
countryCode: "91",
currencyCode: "INR"
},
"ID": {
countryName: "INDONESIA",
countryCode: "62",
currencyCode: ""
},
"IR": {
countryName: "IRAN, ISLAMIC REPUBLIC OF",
countryCode: "",
currencyCode: ""
},
"IQ": {
countryName: "IRAQ",
countryCode: "964",
currencyCode: ""
},
"IE": {
countryName: "IRELAND",
countryCode: "353",
currencyCode: "EURO"
},
"IM": {
countryName: "ISLE OF MAN",
countryCode: "",
currencyCode: ""
},
"IL": {
countryName: "ISRAEL",
countryCode: "972",
currencyCode: ""
},
"IT": {
countryName: "ITALY",
countryCode: "39",
currencyCode: "EURO"
},
"JM": {
countryName: "JAMAICA",
countryCode: "1",
currencyCode: ""
},
"JP": {
countryName: "JAPAN",
countryCode: "81",
currencyCode: "YEN"
},
"JO": {
countryName: "JORDAN",
countryCode: "962",
currencyCode: ""
},
"KZ": {
countryName: "KAZAKHSTAN",
countryCode: "7",
currencyCode: ""
},
"KE": {
countryName: "KENYA",
countryCode: "254",
currencyCode: "KES"
},
"KI": {
countryName: "KIRIBATI",
countryCode: "686",
currencyCode: "AUD"
},
"KP": {
countryName: "KOREA, DEM. PEOPLES REP OF",
countryCode: "",
currencyCode: ""
},
"KR": {
countryName: "KOREA, REPUBLIC OF",
countryCode: "",
currencyCode: ""
},
"KW": {
countryName: "KUWAIT",
countryCode: "965",
currencyCode: ""
},
"KG": {
countryName: "KYRGYZSTAN",
countryCode: "996",
currencyCode: ""
},
"LA": {
countryName: "LAO PEOPLEĆÆĀæĀ½S DEM. REPUBLIC",
countryCode: "",
currencyCode: ""
},
"LV": {
countryName: "LATVIA",
countryCode: "371",
currencyCode: ""
},
"LB": {
countryName: "LEBANON",
countryCode: "961",
currencyCode: "POUND"
},
"LS": {
countryName: "LESOTHO",
countryCode: "266",
currencyCode: ""
},
"LR": {
countryName: "LIBERIA",
countryCode: "231",
currencyCode: ""
},
"LY": {
countryName: "LIBYAN ARAB JAMAHIRIYA",
countryCode: "",
currencyCode: ""
},
"LI": {
countryName: "LIECHTENSTEIN",
countryCode: "423",
currencyCode: "CHF"
},
"LT": {
countryName: "LITHUANIA",
countryCode: "370",
currencyCode: ""
},
"LU": {
countryName: "LUXEMBOURG",
countryCode: "352",
currencyCode: "EURO"
},
"MO": {
countryName: "MACAO",
countryCode: "",
currencyCode: ""
},
"MK": {
countryName: "MACEDONIA",
countryCode: "389",
currencyCode: ""
},
"MG": {
countryName: "MADAGASCAR",
countryCode: "261",
currencyCode: ""
},
"MW": {
countryName: "MALAWI",
countryCode: "265",
currencyCode: ""
},
"MY": {
countryName: "MALAYSIA",
countryCode: "60",
currencyCode: ""
},
"MV": {
countryName: "MALDIVES",
countryCode: "960",
currencyCode: ""
},
"ML": {
countryName: "MALI",
countryCode: "223"
},
"MT": {
countryName: "MALTA",
countryCode: "356",
currencyCode: "EURO"
},
"MH": {
countryName: "MARSHALL ISLANDS",
countryCode: "692",
currencyCode: "USD"
},
"MQ": {
countryName: "MARTINIQUE",
countryCode: "596",
currencyCode: "EURO"
},
"MR": {
countryName: "MAURITANIA",
countryCode: "222",
currencyCode: ""
},
"MU": {
countryName: "MAURITIUS",
countryCode: "230",
currencyCode: ""
},
"YT": {
countryName: "MAYOTTE",
countryCode: "262",
currencyCode: "EURO"
},
"MX": {
countryName: "MEXICO",
countryCode: "52",
currencyCode: "MXN"
},
"FM": {
countryName: "MICRONESIA",
countryCode: "691",
currencyCode: "USD"
},
"MD": {
countryName: "MOLDAVA REPUBLIC OF",
countryCode: "",
currencyCode: ""
},
"MC": {
countryName: "MONACO",
countryCode: "377",
currencyCode: "EURO"
},
"MN": {
countryName: "MONGOLIA",
countryCode: "976",
currencyCode: ""
},
"ME": {
countryName: "MONTENEGRO",
countryCode: "382",
currencyCode: "EURO"
},
"MS": {
countryName: "MONTSERRAT",
countryCode: "1",
currencyCode: ""
},
"MA": {
countryName: "MOROCCO",
countryCode: "212",
currencyCode: "DHS"
},
"MZ": {
countryName: "MOZAMBIQUE",
countryCode: "258",
currencyCode: ""
},
"MM": {
countryName: "MYANMAR",
countryCode: "95",
currencyCode: ""
},
"NA": {
countryName: "NAMIBIA",
countryCode: "264",
currencyCode: ""
},
"NR": {
countryName: "NAURU",
countryCode: "674",
currencyCode: "AUD"
},
"NP": {
countryName: "NEPAL",
countryCode: "977",
currencyCode: ""
},
"AN": {
countryName: "NETHERLANDS ANTILLES",
countryCode: "599",
currencyCode: ""
},
"NL": {
countryName: "NETHERLANDS, THE",
countryCode: "",
currencyCode: "EURO"
},
"NC": {
countryName: "NEW CALEDONIA",
countryCode: "687",
currencyCode: ""
},
"NZ": {
countryName: "NEW ZEALAND",
countryCode: "64",
currencyCode: "NZD"
},
"NI": {
countryName: "NICARAGUA",
countryCode: "505",
currencyCode: ""
},
"NE": {
countryName: "NIGER",
countryCode: "227",
currencyCode: ""
},
"NG": {
countryName: "NIGERIA",
countryCode: "234",
currencyCode: "NGN"
},
"NU": {
countryName: "NIUE",
countryCode: "683",
currencyCode: "NZD"
},
"NF": {
countryName: "NORFOLK ISLAND",
countryCode: "6723",
currencyCode: "AUD"
},
"MP": {
countryName: "NORTHERN MARIANA ISLANDS",
countryCode: "",
currencyCode: "USD"
},
"NO": {
countryName: "NORWAY",
countryCode: "47",
currencyCode: ""
},
"OM": {
countryName: "OMAN",
countryCode: "968",
currencyCode: ""
},
"PK": {
countryName: "PAKISTAN",
countryCode: "92",
currencyCode: ""
},
"PW": {
countryName: "PALAU",
countryCode: "680",
currencyCode: "USD"
},
"PS": {
countryName: "PALESTINE",
countryCode: "",
currencyCode: ""
},
"PA": {
countryName: "PANAMA",
countryCode: "507",
currencyCode: ""
},
"PG": {
countryName: "PAPUA NEW GUINEA",
countryCode: "675",
currencyCode: ""
},
"PY": {
countryName: "PARAGUAY",
countryCode: "595",
currencyCode: ""
},
"PE": {
countryName: "PERU",
countryCode: "51",
currencyCode: ""
},
"PH": {
countryName: "PHILIPPINES (REPUBLIC OF THE)",
countryCode: "63",
currencyCode: ""
},
"PN": {
countryName: "PITCAIRN",
countryCode: "",
currencyCode: "NZD"
},
"PL": {
countryName: "POLAND",
countryCode: "48",
currencyCode: ""
},
"PT": {
countryName: "PORTUGAL",
countryCode: "351",
currencyCode: "EURO"
},
"PR": {
countryName: "PUERTO RICO",
countryCode: "1",
currencyCode: "USD"
},
"QA": {
countryName: "QATAR",
countryCode: "974",
currencyCode: ""
},
"RE": {
countryName: "REUNION",
countryCode: "262",
currencyCode: "EURO"
},
"RO": {
countryName: "ROMANIA",
countryCode: "40",
currencyCode: ""
},
"RU": {
countryName: "RUSSIAN FEDERATION",
countryCode: "7",
currencyCode: ""
},
"RW": {
countryName: "RWANDA",
countryCode: "250",
currencyCode: ""
},
"WS": {
countryName: "SAMOA",
countryCode: "685",
currencyCode: ""
},
"SM": {
countryName: "SAN MARINO",
countryCode: "378",
currencyCode: "EURO"
},
"ST": {
countryName: "SAO TOME/PRINCIPE",
countryCode: "",
currencyCode: ""
},
"SA": {
countryName: "SAUDI ARABIA",
countryCode: "966",
currencyCode: "SAR"
},
"UK": {
countryName: "UNITED KINGDOM",
countryCode: "44",
currencyCode: ""
},
"SN": {
countryName: "SENEGAL",
countryCode: "221",
currencyCode: ""
},
"RS": {
countryName: "SERBIA",
countryCode: "381",
currencyCode: "EURO"
},
"SC": {
countryName: "SEYCHELLES",
countryCode: "248",
currencyCode: ""
},
"SL": {
countryName: "SIERRA LEONE",
countryCode: "232",
currencyCode: ""
},
"SG": {
countryName: "SINGAPORE",
countryCode: "65",
currencyCode: "SGD"
},
"SK": {
countryName: "SLOVAKIA",
countryCode: "421",
currencyCode: "EURO"
},
"SI": {
countryName: "SLOVENIA",
countryCode: "386",
currencyCode: "EURO"
},
"SB": {
countryName: "SOLOMON ISLANDS",
countryCode: "677",
currencyCode: ""
},
"SO": {
countryName: "SOMALIA",
countryCode: "252",
currencyCode: ""
},
"AS": {
countryName: "SOMOA,GILBERT,ELLICE ISLANDS",
countryCode: "",
currencyCode: ""
},
"ZA": {
countryName: "SOUTH AFRICA",
countryCode: "27",
currencyCode: "ZAR"
},
"GS": {
countryName: "SOUTH GEORGIA, SOUTH SANDWICH ISLANDS",
countryCode: "",
currencyCode: "POUND"
},
"SU": {
countryName: "SOVIET UNION",
countryCode: "",
currencyCode: ""
},
"ES": {
countryName: "SPAIN",
countryCode: "34",
currencyCode: "EURO"
},
"LK": {
countryName: "SRI LANKA",
countryCode: "94",
currencyCode: "LKR"
},
"SH": {
countryName: "ST. HELENA",
countryCode: "",
currencyCode: "POUND"
},
"KN": {
countryName: "ST. KITTS AND NEVIS",
countryCode: "",
currencyCode: ""
},
"LC": {
countryName: "ST. LUCIA",
countryCode: "",
currencyCode: ""
},
"PM": {
countryName: "ST. PIERRE AND MIQUELON",
countryCode: "",
currencyCode: "EURO"
},
"VC": {
countryName: "ST. VINCENT & THE GRENADINES",
countryCode: "",
currencyCode: ""
},
"SD": {
countryName: "SUDAN",
countryCode: "249",
currencyCode: "POUND"
},
"SR": {
countryName: "SURINAME",
countryCode: "597",
currencyCode: ""
},
"SJ": {
countryName: "SVALBARD AND JAN MAYEN",
countryCode: "",
currencyCode: ""
},
"SZ": {
countryName: "SWAZILAND",
countryCode: "268",
currencyCode: ""
},
"SE": {
countryName: "SWEDEN",
countryCode: "46",
currencyCode: ""
},
"CH": {
countryName: "SWITZERLAND",
countryCode: "41",
currencyCode: "CHF"
},
"SY": {
countryName: "SYRIAN ARAB REPUBLIC",
countryCode: "",
currencyCode: "POUND"
},
"TW": {
countryName: "TAIWAN",
countryCode: "886",
currencyCode: ""
},
"TJ": {
countryName: "TAJIKISTAN",
countryCode: "992",
currencyCode: ""
},
"TZ": {
countryName: "TANZANIA, UNITED REPUBLIC OF",
countryCode: "",
currencyCode: ""
},
"TH": {
countryName: "THAILAND",
countryCode: "66",
currencyCode: "THB"
},
"TG": {
countryName: "TOGO",
countryCode: "228",
currencyCode: ""
},
"TK": {
countryName: "TOKELAU",
countryCode: "690",
currencyCode: "NZD"
},
"TO": {
countryName: "TONGA",
countryCode: "676",
currencyCode: ""
},
"TT": {
countryName: "TRINIDAD AND TOBAGO",
countryCode: "1",
currencyCode: ""
},
"TN": {
countryName: "TUNISIA",
countryCode: "216",
currencyCode: ""
},
"TR": {
countryName: "TURKEY",
countryCode: "90",
currencyCode: "TRL"
},
"TM": {
countryName: "TURKMENISTAN",
countryCode: "993",
currencyCode: ""
},
"TC": {
countryName: "TURKS AND CALCOS ISLANDS",
countryCode: "",
currencyCode: "USD"
},
"TV": {
countryName: "TUVALU",
countryCode: "688",
currencyCode: "AUD"
},
"UG": {
countryName: "UGANDA",
countryCode: "256",
currencyCode: ""
},
"UA": {
countryName: "UKRAINE",
countryCode: "380",
currencyCode: ""
},
"AE": {
countryName: "UNITED ARAB EMIRATES",
countryCode: "971",
currencyCode: "DHS"
},
"GB": {
countryName: "UNITED KINGDOM",
countryCode: "44",
currencyCode: "POUND"
},
"US": {
countryName: "UNITED STATES",
countryCode: "1",
currencyCode: "USD"
},
"UM": {
countryName: "UNITED STATES MINOR OUTL.IS.",
countryCode: "1",
currencyCode: "USD"
},
"UY": {
countryName: "URUGUAY",
countryCode: "598",
currencyCode: ""
},
"UZ": {
countryName: "UZBEKISTAN",
countryCode: "998",
currencyCode: ""
},
"VU": {
countryName: "VANUATU",
countryCode: "678",
currencyCode: ""
},
"VA": {
countryName: "VATICAN CITY STATE",
countryCode: "379, 39",
currencyCode: "EURO"
},
"VE": {
countryName: "VENEZUELA",
countryCode: "58",
currencyCode: ""
},
"VN": {
countryName: "VIET NAM",
countryCode: "",
currencyCode: "VND"
},
"VI": {
countryName: "VIRGIN ISLANDS (USA)",
countryCode: "",
currencyCode: "USD"
},
"WF": {
countryName: "WALLIS AND FUTUNA ISLANDS",
countryCode: "",
currencyCode: ""
},
"EH": {
countryName: "WESTERN SAHARA",
countryCode: "",
currencyCode: "DHS"
},
"YE": {
countryName: "YEMEN",
countryCode: "967",
currencyCode: ""
},
"ZM": {
countryName: "ZAMBIA",
countryCode: "260",
currencyCode: ""
},
"ZW": {
countryName: "ZIMBABWE",
countryCode: "263",
currencyCode: ""
}
},
getName: function(countryInitial){
return Country.countries[countryInitial] && Country.countries[countryInitial] != null ? Country.countries[countryInitial].countryName : "";
},
getCode: function(countryInitial){
return Country.countries[countryInitial] && Country.countries[countryInitial] != null ? Country.countries[countryInitial].countryCode : "";
},
getCurrency: function(countryInitial){
return Country.countries[countryInitial] && Country.countries[countryInitial] != null ? Country.countries[countryInitial].currencyCode : "";
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment