//Array.some() - will check the data in an array if some meet what you are looking for
const ages = [32, 15, 19, 12];
// is there at least one adult in the group?
const adultPresent = ages.some(age => age >= 18);
console.log(adultPresent);
//Array.every() will check the data in an array if all of the items meet what you are looking for
// is everyone old enough to drink?
const allOldEnough = ages.every(age => age >= 19);
console.log(allOldEnough);