//.some method accepts a callback function as an argument. If this
// function returns true for at least one element, the whole method
// returns true; otherwise it returns false.
const cities = [
"Orlando",
"Dubai",
"Denver",
"Edinburgh",
"Accra",
"Chennai",
"New York",
"Los Angeles",
];
const findLargeCity = (element) => {
return element === "New York" || element === "Los Angeles";
};
console.log(cities.some(findLargeCity));
// Expected output is true