country codes as a javascript object and array

As an array:


[
	['Zimbabwe', 716, 'ZWE'],
	['Zambia', 894, 'ZMB'],
	['South Africa', 710, 'ZAF'],
	['Mayotte', 175, 'MYT'],
	['Yemen', 887, 'YEM'],
	['Samoa', 882, 'WSM'],
	['Wallis and Futuna', 876, 'WLF'],
	['Vanuatu', 548, 'VUT'],
	['Viet Nam', 704, 'VNM'],
	['Virgin Islands (U.S.)', 850, 'VIR'],
	['Virgin Islands (British)', 092, 'VGB'],
	['Venezuela (Bolivarian Republic of)', 862, 'VEN'],
	['Saint Vincent and the Grenadines', 670, 'VCT'],
	['Holy See (the)', 336, 'VAT'],
	['Uzbekistan', 860, 'UZB'],
	['Uruguay', 858, 'URY'],
	['United States of America (the)', 840, 'USA'],
	['United States Minor Outlying Islands (the)', 581, 'UMI'],
	['Uganda', 800, 'UGA'],
	['Ukraine', 804, 'UKR'],
	['Tanzania, United Republic of', 834, 'TZA'],
	['Taiwan (Province of China)', 158, 'TWN'],
	['Tuvalu', 798, 'TUV'],
	['Trinidad and Tobago', 780, 'TTO'],
	['Turkey', 792, 'TUR'],
	['Tonga', 776, 'TON'],
	['Tunisia', 788, 'TUN'],
	['Turkmenistan', 795, 'TKM'],
	['Timor-Leste', 626, 'TLS'],
	['Tokelau', 772, 'TKL'],
	['Tajikistan', 762, 'TJK'],
	['Thailand', 764, 'THA'],
	['Togo', 768, 'TGO'],
	['French Southern Territories (the)', 260, 'ATF'],
	['Chad', 148, 'TCD'],
	['Turks and Caicos Islands (the)', 796, 'TCA'],
	['Eswatini', 748, 'SWZ'],
	['Syrian Arab Republic', 760, 'SYR'],
	['Sint Maarten (Dutch part)', 534, 'SXM'],
	['El Salvador', 222, 'SLV'],
	['Sao Tome and Principe', 678, 'STP'],
	['South Sudan', 728, 'SSD'],
	['Suriname', 740, 'SUR'],
	['Somalia', 706, 'SOM'],
	['Senegal', 686, 'SEN'],
	['San Marino', 674, 'SMR'],
	['Sierra Leone', 694, 'SLE'],
	['Slovakia', 703, 'SVK'],
	['Svalbard and Jan Mayen', 744, 'SJM'],
	['Slovenia', 705, 'SVN'],
	['Saint Helena, Ascension and Tristan da Cunha', 654, 'SHN'],
	['Singapore', 702, 'SGP'],
	['Sweden', 752, 'SWE'],
	['Sudan (the)', 729, 'SDN'],
	['Seychelles', 690, 'SYC'],
	['Solomon Islands', 090, 'SLB'],
	['Saudi Arabia', 682, 'SAU'],
	['Rwanda', 646, 'RWA'],
	['Russian Federation (the)', 643, 'RUS'],
	['Serbia', 688, 'SRB'],
	['Romania', 642, 'ROU'],
	['Réunion', 638, 'REU'],
	['Qatar', 634, 'QAT'],
	['Paraguay', 600, 'PRY'],
	['Palau', 585, 'PLW'],
	['Portugal', 620, 'PRT'],
	['Palestine, State of', 275, 'PSE'],
	['Puerto Rico', 630, 'PRI'],
	['Pitcairn', 612, 'PCN'],
	['Saint Pierre and Miquelon', 666, 'SPM'],
	['Poland', 616, 'POL'],
	['Pakistan', 586, 'PAK'],
	['Philippines (the)', 608, 'PHL'],
	['Papua New Guinea', 598, 'PNG'],
	['French Polynesia', 258, 'PYF'],
	['Peru', 604, 'PER'],
	['Panama', 591, 'PAN'],
	['Oman', 512, 'OMN'],
	['New Zealand', 554, 'NZL'],
	['Niue', 570, 'NIU'],
	['Nauru', 520, 'NRU'],
	['Nepal', 524, 'NPL'],
	['Norway', 578, 'NOR'],
	['Netherlands (the)', 528, 'NLD'],
	['Nicaragua', 558, 'NIC'],
	['Nigeria', 566, 'NGA'],
	['Norfolk Island', 574, 'NFK'],
	['Niger (the)', 562, 'NER'],
	['New Caledonia', 540, 'NCL'],
	['Namibia', 516, 'NAM'],
	['Mozambique', 508, 'MOZ'],
	['Malaysia', 458, 'MYS'],
	['Mexico', 484, 'MEX'],
	['Malawi', 454, 'MWI'],
	['Maldives', 462, 'MDV'],
	['Mauritius', 480, 'MUS'],
	['Malta', 470, 'MLT'],
	['Montserrat', 500, 'MSR'],
	['Mauritania', 478, 'MRT'],
	['Martinique', 474, 'MTQ'],
	['Northern Mariana Islands (the)', 580, 'MNP'],
	['Macao', 446, 'MAC'],
	['Mongolia', 496, 'MNG'],
	['Myanmar', 104, 'MMR'],
	['Mali', 466, 'MLI'],
	['Republic of North Macedonia', 807, 'MKD'],
	['Marshall Islands (the)', 584, 'MHL'],
	['Madagascar', 450, 'MDG'],
	['Saint Martin (French part)', 663, 'MAF'],
	['Montenegro', 499, 'MNE'],
	['Moldova (the Republic of)', 498, 'MDA'],
	['Monaco', 492, 'MCO'],
	['Morocco', 504, 'MAR'],
	['Libya', 434, 'LBY'],
	['Latvia', 428, 'LVA'],
	['Luxembourg', 442, 'LUX'],
	['Lithuania', 440, 'LTU'],
	['Lesotho', 426, 'LSO'],
	['Liberia', 430, 'LBR'],
	['Sri Lanka', 144, 'LKA'],
	['Liechtenstein', 438, 'LIE'],
	['Saint Lucia', 662, 'LCA'],
	['Lebanon', 422, 'LBN'],
	['Lao People\'s Democratic Republic (the)', 418, 'LAO'],
	['Kazakhstan', 398, 'KAZ'],
	['Cayman Islands (the)', 136, 'CYM'],
	['Kuwait', 414, 'KWT'],
	['Korea (the Republic of)', 410, 'KOR'],
	['Korea (the Democratic People\'s Republic of)', 408, 'PRK'],
	['Saint Kitts and Nevis', 659, 'KNA'],
	['Comoros (the)', 174, 'COM'],
	['Kiribati', 296, 'KIR'],
	['Cambodia', 116, 'KHM'],
	['Kyrgyzstan', 417, 'KGZ'],
	['Kenya', 404, 'KEN'],
	['Japan', 392, 'JPN'],
	['Jordan', 400, 'JOR'],
	['Jamaica', 388, 'JAM'],
	['Jersey', 832, 'JEY'],
	['Italy', 380, 'ITA'],
	['Iceland', 352, 'ISL'],
	['Iran (Islamic Republic of)', 364, 'IRN'],
	['Iraq', 368, 'IRQ'],
	['British Indian Ocean Territory (the)', 086, 'IOT'],
	['India', 356, 'IND'],
	['Isle of Man', 833, 'IMN'],
	['Israel', 376, 'ISR'],
	['Ireland', 372, 'IRL'],
	['Indonesia', 360, 'IDN'],
	['Hungary', 348, 'HUN'],
	['Haiti', 332, 'HTI'],
	['Croatia', 191, 'HRV'],
	['Honduras', 340, 'HND'],
	['Heard Island and McDonald Islands', 334, 'HMD'],
	['Hong Kong', 344, 'HKG'],
	['Guyana', 328, 'GUY'],
	['Guinea-Bissau', 624, 'GNB'],
	['Guam', 316, 'GUM'],
	['Guatemala', 320, 'GTM'],
	['South Georgia and the South Sandwich Islands', 239, 'SGS'],
	['Greece', 300, 'GRC'],
	['Equatorial Guinea', 226, 'GNQ'],
	['Guadeloupe', 312, 'GLP'],
	['Guinea', 324, 'GIN'],
	['Gambia (the)', 270, 'GMB'],
	['Greenland', 304, 'GRL'],
	['Gibraltar', 292, 'GIB'],
	['Ghana', 288, 'GHA'],
	['Guernsey', 831, 'GGY'],
	['French Guiana', 254, 'GUF'],
	['Georgia', 268, 'GEO'],
	['Grenada', 308, 'GRD'],
	['United Kingdom of Great Britain and Northern Ireland (the)', 826, 'GBR'],
	['Gabon', 266, 'GAB'],
	['France', 250, 'FRA'],
	['Faroe Islands (the)', 234, 'FRO'],
	['Micronesia (Federated States of)', 583, 'FSM'],
	['Falkland Islands (the) [Malvinas]', 238, 'FLK'],
	['Fiji', 242, 'FJI'],
	['Finland', 246, 'FIN'],
	['Ethiopia', 231, 'ETH'],
	['Spain', 724, 'ESP'],
	['Eritrea', 232, 'ERI'],
	['Western Sahara', 732, 'ESH'],
	['Egypt', 818, 'EGY'],
	['Estonia', 233, 'EST'],
	['Ecuador', 218, 'ECU'],
	['Algeria', 012, 'DZA'],
	['Dominican Republic (the)', 214, 'DOM'],
	['Dominica', 212, 'DMA'],
	['Denmark', 208, 'DNK'],
	['Djibouti', 262, 'DJI'],
	['Germany', 276, 'DEU'],
	['Czechia', 203, 'CZE'],
	['Cyprus', 196, 'CYP'],
	['Christmas Island', 162, 'CXR'],
	['Curaçao', 531, 'CUW'],
	['Cabo Verde', 132, 'CPV'],
	['Cuba', 192, 'CUB'],
	['Costa Rica', 188, 'CRI'],
	['Colombia', 170, 'COL'],
	['China', 156, 'CHN'],
	['Cameroon', 120, 'CMR'],
	['Chile', 152, 'CHL'],
	['Cook Islands (the)', 184, 'COK'],
	['Côte d\'Ivoire', 384, 'CIV'],
	['Switzerland', 756, 'CHE'],
	['Congo (the)', 178, 'COG'],
	['Central African Republic (the)', 140, 'CAF'],
	['Congo (the Democratic Republic of the)', 180, 'COD'],
	['Cocos (Keeling) Islands (the)', 166, 'CCK'],
	['Canada', 124, 'CAN'],
	['Belize', 084, 'BLZ'],
	['Belarus', 112, 'BLR'],
	['Botswana', 072, 'BWA'],
	['Bouvet Island', 074, 'BVT'],
	['Bhutan', 064, 'BTN'],
	['Bahamas (the)', 044, 'BHS'],
	['Brazil', 076, 'BRA'],
	['Bonaire, Sint Eustatius and Saba', 535, 'BES'],
	['Bolivia (Plurinational State of)', 068, 'BOL'],
	['Brunei Darussalam', 096, 'BRN'],
	['Bermuda', 060, 'BMU'],
	['Saint Barthélemy', 652, 'BLM'],
	['Benin', 204, 'BEN'],
	['Burundi', 108, 'BDI'],
	['Bahrain', 048, 'BHR'],
	['Bulgaria', 100, 'BGR'],
	['Burkina Faso', 854, 'BFA'],
	['Belgium', 056, 'BEL'],
	['Bangladesh', 050, 'BGD'],
	['Barbados', 052, 'BRB'],
	['Bosnia and Herzegovina', 070, 'BIH'],
	['Azerbaijan', 031, 'AZE'],
	['Åland Islands', 248, 'ALA'],
	['Aruba', 533, 'ABW'],
	['Australia', 036, 'AUS'],
	['Austria', 040, 'AUT'],
	['American Samoa', 016, 'ASM'],
	['Argentina', 032, 'ARG'],
	['Antarctica', 010, 'ATA'],
	['Angola', 024, 'AGO'],
	['Armenia', 051, 'ARM'],
	['Albania', 008, 'ALB'],
	['Anguilla', 660, 'AIA'],
	['Antigua and Barbuda', 028, 'ATG'],
	['Afghanistan', 004, 'AFG'],
	['United Arab Emirates (the)', 784, 'ARE'],
	['Andorra', 020, 'AND'],
]

Also, as object keys:


COUNTRIES: {

	'Zimbabwe': [716, 'ZWE'],
	'Zambia': [894, 'ZMB'],
	'South Africa': [710, 'ZAF'],
	'Mayotte': [175, 'MYT'],
	'Yemen': [887, 'YEM'],
	'Samoa': [882, 'WSM'],
	'Wallis and Futuna': [876, 'WLF'],
	'Vanuatu': [548, 'VUT'],
	'Viet Nam': [704, 'VNM'],
	'Virgin Islands (U.S.)': [850, 'VIR'],
	'Virgin Islands (British)': [092, 'VGB'],
	'Venezuela (Bolivarian Republic of)': [862, 'VEN'],
	'Saint Vincent and the Grenadines': [670, 'VCT'],
	'Holy See (the)': [336, 'VAT'],
	'Uzbekistan': [860, 'UZB'],
	'Uruguay': [858, 'URY'],
	'United States of America (the)': [840, 'USA'],
	'United States Minor Outlying Islands (the)': [581, 'UMI'],
	'Uganda': [800, 'UGA'],
	'Ukraine': [804, 'UKR'],
	'Tanzania, United Republic of': [834, 'TZA'],
	'Taiwan (Province of China)': [158, 'TWN'],
	'Tuvalu': [798, 'TUV'],
	'Trinidad and Tobago': [780, 'TTO'],
	'Turkey': [792, 'TUR'],
	'Tonga': [776, 'TON'],
	'Tunisia': [788, 'TUN'],
	'Turkmenistan': [795, 'TKM'],
	'Timor-Leste': [626, 'TLS'],
	'Tokelau': [772, 'TKL'],
	'Tajikistan': [762, 'TJK'],
	'Thailand': [764, 'THA'],
	'Togo': [768, 'TGO'],
	'French Southern Territories (the)': [260, 'ATF'],
	'Chad': [148, 'TCD'],
	'Turks and Caicos Islands (the)': [796, 'TCA'],
	'Eswatini': [748, 'SWZ'],
	'Syrian Arab Republic': [760, 'SYR'],
	'Sint Maarten (Dutch part)': [534, 'SXM'],
	'El Salvador': [222, 'SLV'],
	'Sao Tome and Principe': [678, 'STP'],
	'South Sudan': [728, 'SSD'],
	'Suriname': [740, 'SUR'],
	'Somalia': [706, 'SOM'],
	'Senegal': [686, 'SEN'],
	'San Marino': [674, 'SMR'],
	'Sierra Leone': [694, 'SLE'],
	'Slovakia': [703, 'SVK'],
	'Svalbard and Jan Mayen': [744, 'SJM'],
	'Slovenia': [705, 'SVN'],
	'Saint Helena, Ascension and Tristan da Cunha': [654, 'SHN'],
	'Singapore': [702, 'SGP'],
	'Sweden': [752, 'SWE'],
	'Sudan (the)': [729, 'SDN'],
	'Seychelles': [690, 'SYC'],
	'Solomon Islands': [090, 'SLB'],
	'Saudi Arabia': [682, 'SAU'],
	'Rwanda': [646, 'RWA'],
	'Russian Federation (the)': [643, 'RUS'],
	'Serbia': [688, 'SRB'],
	'Romania': [642, 'ROU'],
	'Réunion': [638, 'REU'],
	'Qatar': [634, 'QAT'],
	'Paraguay': [600, 'PRY'],
	'Palau': [585, 'PLW'],
	'Portugal': [620, 'PRT'],
	'Palestine, State of': [275, 'PSE'],
	'Puerto Rico': [630, 'PRI'],
	'Pitcairn': [612, 'PCN'],
	'Saint Pierre and Miquelon': [666, 'SPM'],
	'Poland': [616, 'POL'],
	'Pakistan': [586, 'PAK'],
	'Philippines (the)': [608, 'PHL'],
	'Papua New Guinea': [598, 'PNG'],
	'French Polynesia': [258, 'PYF'],
	'Peru': [604, 'PER'],
	'Panama': [591, 'PAN'],
	'Oman': [512, 'OMN'],
	'New Zealand': [554, 'NZL'],
	'Niue': [570, 'NIU'],
	'Nauru': [520, 'NRU'],
	'Nepal': [524, 'NPL'],
	'Norway': [578, 'NOR'],
	'Netherlands (the)': [528, 'NLD'],
	'Nicaragua': [558, 'NIC'],
	'Nigeria': [566, 'NGA'],
	'Norfolk Island': [574, 'NFK'],
	'Niger (the)': [562, 'NER'],
	'New Caledonia': [540, 'NCL'],
	'Namibia': [516, 'NAM'],
	'Mozambique': [508, 'MOZ'],
	'Malaysia': [458, 'MYS'],
	'Mexico': [484, 'MEX'],
	'Malawi': [454, 'MWI'],
	'Maldives': [462, 'MDV'],
	'Mauritius': [480, 'MUS'],
	'Malta': [470, 'MLT'],
	'Montserrat': [500, 'MSR'],
	'Mauritania': [478, 'MRT'],
	'Martinique': [474, 'MTQ'],
	'Northern Mariana Islands (the)': [580, 'MNP'],
	'Macao': [446, 'MAC'],
	'Mongolia': [496, 'MNG'],
	'Myanmar': [104, 'MMR'],
	'Mali': [466, 'MLI'],
	'Republic of North Macedonia': [807, 'MKD'],
	'Marshall Islands (the)': [584, 'MHL'],
	'Madagascar': [450, 'MDG'],
	'Saint Martin (French part)': [663, 'MAF'],
	'Montenegro': [499, 'MNE'],
	'Moldova (the Republic of)': [498, 'MDA'],
	'Monaco': [492, 'MCO'],
	'Morocco': [504, 'MAR'],
	'Libya': [434, 'LBY'],
	'Latvia': [428, 'LVA'],
	'Luxembourg': [442, 'LUX'],
	'Lithuania': [440, 'LTU'],
	'Lesotho': [426, 'LSO'],
	'Liberia': [430, 'LBR'],
	'Sri Lanka': [144, 'LKA'],
	'Liechtenstein': [438, 'LIE'],
	'Saint Lucia': [662, 'LCA'],
	'Lebanon': [422, 'LBN'],
	'Lao People\'s Democratic Republic (the)': [418, 'LAO'],
	'Kazakhstan': [398, 'KAZ'],
	'Cayman Islands (the)': [136, 'CYM'],
	'Kuwait': [414, 'KWT'],
	'Korea (the Republic of)': [410, 'KOR'],
	'Korea (the Democratic People\'s Republic of)': [408, 'PRK'],
	'Saint Kitts and Nevis': [659, 'KNA'],
	'Comoros (the)': [174, 'COM'],
	'Kiribati': [296, 'KIR'],
	'Cambodia': [116, 'KHM'],
	'Kyrgyzstan': [417, 'KGZ'],
	'Kenya': [404, 'KEN'],
	'Japan': [392, 'JPN'],
	'Jordan': [400, 'JOR'],
	'Jamaica': [388, 'JAM'],
	'Jersey': [832, 'JEY'],
	'Italy': [380, 'ITA'],
	'Iceland': [352, 'ISL'],
	'Iran (Islamic Republic of)': [364, 'IRN'],
	'Iraq': [368, 'IRQ'],
	'British Indian Ocean Territory (the)': [086, 'IOT'],
	'India': [356, 'IND'],
	'Isle of Man': [833, 'IMN'],
	'Israel': [376, 'ISR'],
	'Ireland': [372, 'IRL'],
	'Indonesia': [360, 'IDN'],
	'Hungary': [348, 'HUN'],
	'Haiti': [332, 'HTI'],
	'Croatia': [191, 'HRV'],
	'Honduras': [340, 'HND'],
	'Heard Island and McDonald Islands': [334, 'HMD'],
	'Hong Kong': [344, 'HKG'],
	'Guyana': [328, 'GUY'],
	'Guinea-Bissau': [624, 'GNB'],
	'Guam': [316, 'GUM'],
	'Guatemala': [320, 'GTM'],
	'South Georgia and the South Sandwich Islands': [239, 'SGS'],
	'Greece': [300, 'GRC'],
	'Equatorial Guinea': [226, 'GNQ'],
	'Guadeloupe': [312, 'GLP'],
	'Guinea': [324, 'GIN'],
	'Gambia (the)': [270, 'GMB'],
	'Greenland': [304, 'GRL'],
	'Gibraltar': [292, 'GIB'],
	'Ghana': [288, 'GHA'],
	'Guernsey': [831, 'GGY'],
	'French Guiana': [254, 'GUF'],
	'Georgia': [268, 'GEO'],
	'Grenada': [308, 'GRD'],
	'United Kingdom of Great Britain and Northern Ireland (the)': [826, 'GBR'],
	'Gabon': [266, 'GAB'],
	'France': [250, 'FRA'],
	'Faroe Islands (the)': [234, 'FRO'],
	'Micronesia (Federated States of)': [583, 'FSM'],
	'Falkland Islands (the) [Malvinas]': [238, 'FLK'],
	'Fiji': [242, 'FJI'],
	'Finland': [246, 'FIN'],
	'Ethiopia': [231, 'ETH'],
	'Spain': [724, 'ESP'],
	'Eritrea': [232, 'ERI'],
	'Western Sahara': [732, 'ESH'],
	'Egypt': [818, 'EGY'],
	'Estonia': [233, 'EST'],
	'Ecuador': [218, 'ECU'],
	'Algeria': [012, 'DZA'],
	'Dominican Republic (the)': [214, 'DOM'],
	'Dominica': [212, 'DMA'],
	'Denmark': [208, 'DNK'],
	'Djibouti': [262, 'DJI'],
	'Germany': [276, 'DEU'],
	'Czechia': [203, 'CZE'],
	'Cyprus': [196, 'CYP'],
	'Christmas Island': [162, 'CXR'],
	'Curaçao': [531, 'CUW'],
	'Cabo Verde': [132, 'CPV'],
	'Cuba': [192, 'CUB'],
	'Costa Rica': [188, 'CRI'],
	'Colombia': [170, 'COL'],
	'China': [156, 'CHN'],
	'Cameroon': [120, 'CMR'],
	'Chile': [152, 'CHL'],
	'Cook Islands (the)': [184, 'COK'],
	'Côte d\'Ivoire': [384, 'CIV'],
	'Switzerland': [756, 'CHE'],
	'Congo (the)': [178, 'COG'],
	'Central African Republic (the)': [140, 'CAF'],
	'Congo (the Democratic Republic of the)': [180, 'COD'],
	'Cocos (Keeling) Islands (the)': [166, 'CCK'],
	'Canada': [124, 'CAN'],
	'Belize': [084, 'BLZ'],
	'Belarus': [112, 'BLR'],
	'Botswana': [072, 'BWA'],
	'Bouvet Island': [074, 'BVT'],
	'Bhutan': [064, 'BTN'],
	'Bahamas (the)': [044, 'BHS'],
	'Brazil': [076, 'BRA'],
	'Bonaire, Sint Eustatius and Saba': [535, 'BES'],
	'Bolivia (Plurinational State of)': [068, 'BOL'],
	'Brunei Darussalam': [096, 'BRN'],
	'Bermuda': [060, 'BMU'],
	'Saint Barthélemy': [652, 'BLM'],
	'Benin': [204, 'BEN'],
	'Burundi': [108, 'BDI'],
	'Bahrain': [048, 'BHR'],
	'Bulgaria': [100, 'BGR'],
	'Burkina Faso': [854, 'BFA'],
	'Belgium': [056, 'BEL'],
	'Bangladesh': [050, 'BGD'],
	'Barbados': [052, 'BRB'],
	'Bosnia and Herzegovina': [070, 'BIH'],
	'Azerbaijan': [031, 'AZE'],
	'Åland Islands': [248, 'ALA'],
	'Aruba': [533, 'ABW'],
	'Australia': [036, 'AUS'],
	'Austria': [040, 'AUT'],
	'American Samoa': [016, 'ASM'],
	'Argentina': [032, 'ARG'],
	'Antarctica': [010, 'ATA'],
	'Angola': [024, 'AGO'],
	'Armenia': [051, 'ARM'],
	'Albania': [008, 'ALB'],
	'Anguilla': [660, 'AIA'],
	'Antigua and Barbuda': [028, 'ATG'],
	'Afghanistan': [004, 'AFG'],
	'United Arab Emirates (the)': [784, 'ARE'],
	'Andorra': [020, 'AND'],

}

oko
friend