Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Countries without the letter 'A' in their name:
- [
- "Burundi",
- "Belgium",
- "Benin",
- "Belize",
- "Brunei",
- "Chile",
- "DR Congo",
- "Republic of the Congo",
- "Comoros",
- "Cyprus",
- "Djibouti",
- "Egypt",
- "Fiji",
- "United Kingdom",
- "Guernsey",
- "Greece",
- "Hong Kong",
- "Jersey",
- "Kosovo",
- "Liechtenstein",
- "Lesotho",
- "Luxembourg",
- "Morocco",
- "Mexico",
- "Montenegro",
- "Niger",
- "Niue",
- "Peru",
- "Philippines",
- "Puerto Rico",
- "Réunion",
- "Sweden",
- "Seychelles",
- "Togo",
- "Timor-Leste",
- "Turkey",
- "Yemen"
- ];
- //Code to get this from countries.json:
- countries.filter(function(v){return v.name.common.toLowerCase().indexOf('a')<0}).map(function(v){return v.name.common});
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement