{"ScriptPreparationCode":"var countryList = [\u0022Afghanistan\u0022,\r\n \u0022Albania\u0022,\r\n \u0022Algeria\u0022,\r\n \u0022Andorra\u0022,\r\n \u0022Angola\u0022,\r\n \u0022Antigua and Barbuda\u0022,\r\n \u0022Argentina\u0022,\r\n \u0022Armenia\u0022,\r\n \u0022Australia\u0022,\r\n \u0022Austria\u0022,\r\n \u0022Azerbaijan\u0022,\r\n \u0022The Bahamas\u0022,\r\n \u0022Bahrain\u0022,\r\n \u0022Bangladesh\u0022,\r\n \u0022Barbados\u0022,\r\n \u0022Belarus\u0022,\r\n \u0022Belgium\u0022,\r\n \u0022Belize\u0022,\r\n \u0022Benin\u0022,\r\n \u0022Bhutan\u0022,\r\n \u0022Bolivia\u0022,\r\n \u0022Bosnia and Herzegovina\u0022,\r\n \u0022Botswana\u0022,\r\n \u0022Brazil\u0022,\r\n \u0022Brunei\u0022,\r\n \u0022Bulgaria\u0022,\r\n \u0022Burkina Faso\u0022,\r\n \u0022Burundi\u0022,\r\n \u0022Cambodia\u0022,\r\n \u0022Cameroon\u0022,\r\n \u0022Canada\u0022,\r\n \u0022Cape Verde\u0022,\r\n \u0022Central African Republic\u0022,\r\n \u0022Chad\u0022,\r\n \u0022Chile\u0022,\r\n \u0022China\u0022,\r\n \u0022Colombia\u0022,\r\n \u0022Comoros\u0022,\r\n \u0022Congo, Republic of the\u0022,\r\n \u0022Congo, Democratic Republic of the\u0022,\r\n \u0022Costa Rica\u0022,\r\n \u0022Cote d\u0027Ivoire\u0022,\r\n \u0022Croatia\u0022,\r\n \u0022Cuba\u0022,\r\n \u0022Cyprus\u0022,\r\n \u0022Czech Republic\u0022,\r\n \u0022Denmark\u0022,\r\n \u0022Djibouti\u0022,\r\n \u0022Dominica\u0022,\r\n \u0022Dominican Republic\u0022,\r\n \u0022East Timor (Timor-Leste)\u0022,\r\n \u0022Ecuador\u0022,\r\n \u0022Egypt\u0022,\r\n \u0022El Salvador\u0022,\r\n \u0022Equatorial Guinea\u0022,\r\n \u0022Eritrea\u0022,\r\n \u0022Estonia\u0022,\r\n \u0022Ethiopia\u0022,\r\n \u0022Fiji\u0022,\r\n \u0022Finland\u0022,\r\n \u0022France\u0022,\r\n \u0022Gabon\u0022,\r\n \u0022The Gambia\u0022,\r\n \u0022Georgia\u0022,\r\n \u0022Germany\u0022,\r\n \u0022Ghana\u0022,\r\n \u0022Greece\u0022,\r\n \u0022Grenada\u0022,\r\n \u0022Guatemala\u0022,\r\n \u0022Guinea\u0022,\r\n \u0022Guinea-Bissau\u0022,\r\n \u0022Guyana\u0022,\r\n \u0022Haiti\u0022,\r\n \u0022Honduras\u0022,\r\n \u0022Hungary\u0022,\r\n \u0022Iceland\u0022,\r\n \u0022India\u0022,\r\n \u0022Indonesia\u0022,\r\n \u0022Iran\u0022,\r\n \u0022Iraq\u0022,\r\n \u0022Ireland\u0022,\r\n \u0022Israel\u0022,\r\n \u0022Italy\u0022,\r\n \u0022Jamaica\u0022,\r\n \u0022Japan\u0022,\r\n \u0022Jordan\u0022,\r\n \u0022Kazakhstan\u0022,\r\n \u0022Kenya\u0022,\r\n \u0022Kiribati\u0022,\r\n \u0022Korea, North\u0022,\r\n \u0022Korea, South\u0022,\r\n \u0022Kosovo\u0022,\r\n \u0022Kuwait\u0022,\r\n \u0022Kyrgyzstan\u0022,\r\n \u0022Laos\u0022,\r\n \u0022Latvia\u0022,\r\n \u0022Lebanon\u0022,\r\n \u0022Lesotho\u0022,\r\n \u0022Liberia\u0022,\r\n \u0022Libya\u0022,\r\n \u0022Liechtenstein\u0022,\r\n \u0022Lithuania\u0022,\r\n \u0022Luxembourg\u0022,\r\n \u0022Macedonia\u0022,\r\n \u0022Madagascar\u0022,\r\n \u0022Malawi\u0022,\r\n \u0022Malaysia\u0022,\r\n \u0022Maldives\u0022,\r\n \u0022Mali\u0022,\r\n \u0022Malta\u0022,\r\n \u0022Marshall Islands\u0022,\r\n \u0022Mauritania\u0022,\r\n \u0022Mauritius\u0022,\r\n \u0022Mexico\u0022,\r\n \u0022Micronesia, Federated States of\u0022,\r\n \u0022Moldova\u0022,\r\n \u0022Monaco\u0022,\r\n \u0022Mongolia\u0022,\r\n \u0022Montenegro\u0022,\r\n \u0022Morocco\u0022,\r\n \u0022Mozambique\u0022,\r\n \u0022Myanmar (Burma)\u0022,\r\n \u0022Namibia\u0022,\r\n \u0022Nauru\u0022,\r\n \u0022Nepal\u0022,\r\n \u0022Netherlands\u0022,\r\n \u0022New Zealand\u0022,\r\n \u0022Nicaragua\u0022,\r\n \u0022Niger\u0022,\r\n \u0022Nigeria\u0022,\r\n \u0022Norway\u0022,\r\n \u0022Oman\u0022,\r\n \u0022Pakistan\u0022,\r\n \u0022Palau\u0022,\r\n \u0022Panama\u0022,\r\n \u0022Papua New Guinea\u0022,\r\n \u0022Paraguay\u0022,\r\n \u0022Peru\u0022,\r\n \u0022Philippines\u0022,\r\n \u0022Poland\u0022,\r\n \u0022Portugal\u0022,\r\n \u0022Qatar\u0022,\r\n \u0022Romania\u0022,\r\n \u0022Russia\u0022,\r\n \u0022Rwanda\u0022,\r\n \u0022Saint Kitts and Nevis\u0022,\r\n \u0022Saint Lucia\u0022,\r\n \u0022Saint Vincent and the Grenadines\u0022,\r\n \u0022Samoa\u0022,\r\n \u0022San Marino\u0022,\r\n \u0022Sao Tome and Principe\u0022,\r\n \u0022Saudi Arabia\u0022,\r\n \u0022Senegal\u0022,\r\n \u0022Serbia\u0022,\r\n \u0022Seychelles\u0022,\r\n \u0022Sierra Leone\u0022,\r\n \u0022Singapore\u0022,\r\n \u0022Slovakia\u0022,\r\n \u0022Slovenia\u0022,\r\n \u0022Solomon Islands\u0022,\r\n \u0022Somalia\u0022,\r\n \u0022South Africa\u0022,\r\n \u0022South Sudan\u0022,\r\n \u0022Spain\u0022,\r\n \u0022Sri Lanka\u0022,\r\n \u0022Sudan\u0022,\r\n \u0022Suriname\u0022,\r\n \u0022Swaziland\u0022,\r\n \u0022Sweden\u0022,\r\n \u0022Switzerland\u0022,\r\n \u0022Syria\u0022,\r\n \u0022Taiwan\u0022,\r\n \u0022Tajikistan\u0022,\r\n \u0022Tanzania\u0022,\r\n \u0022Thailand\u0022,\r\n \u0022Togo\u0022,\r\n \u0022Tonga\u0022,\r\n \u0022Trinidad and Tobago\u0022,\r\n \u0022Tunisia\u0022,\r\n \u0022Turkey\u0022,\r\n \u0022Turkmenistan\u0022,\r\n \u0022Tuvalu\u0022,\r\n \u0022Uganda\u0022,\r\n \u0022Ukraine\u0022,\r\n \u0022United Arab Emirates\u0022,\r\n \u0022United Kingdom\u0022,\r\n \u0022United States of America\u0022,\r\n \u0022Uruguay\u0022,\r\n \u0022Uzbekistan\u0022,\r\n \u0022Vanuatu\u0022,\r\n \u0022Vatican City (Holy See)\u0022,\r\n \u0022Venezuela\u0022,\r\n \u0022Vietnam\u0022,\r\n \u0022Yemen\u0022,\r\n \u0022Zambia\u0022,\r\n \u0022Zimbabwe\u0022\r\n];\r\n\r\nvar countries = [];\r\n\r\nfor (var country of countryList) {\r\n const id = Math.floor(Math.random() * 1000);\r\n const countryItem = {\r\n id: id,\r\n name: country\r\n };\r\n}\r\n\r\ncountryList = countryList.sort(function(a, b) {\r\n if (a.id \u003E b.id) {\r\n return 1;\r\n }\r\n if (a.id \u003C b.id) {\r\n return -1;\r\n }\r\n return 0;\r\n});\r\n\r\nvar testCountry = \u0027Zimbabwe\u0027;","TestCases":[{"Name":"Array.some","Code":"var tempResult = countryList.some(country =\u003E country.name === testCountry);","IsDeferred":false},{"Name":"Array.findIndex","Code":"var tempResult = countryList.findIndex(country =\u003E country.name === testCountry);","IsDeferred":false}]}