NOTE: If you were to look at the JavaScript and JavaScript Console, you would see this
// Array.prototype.some()
// is at least one person 19 or older?
const isAdult = people.some(person => (new Date()).getFullYear() - person.year >= 19);
console.log("[Array.prototype.some()]\nDoes this list contain at least one adult?\n");
console.log({isAdult});
// Array.prototype.every()
// is everyone 19 or older?
const allAdults = people.every(person => (new Date()).getFullYear() - person.year >= 19);
console.log("[Array.prototype.every()]\nDoes this list contain ONLY adults?\n");
console.log({allAdults});
// Array.prototype.find()
// Find is like filter, but instead returns just the one you are looking for
// find the comment with the ID of 823423
const comment = comments.find(comment => comment.id === 823423);
console.log("[Array.prototype.find()]\nDoes comment #823423 exist?");
console.log({comment})
// Array.prototype.findIndex()
// Find the comment with this ID
const commentIndex = comments.findIndex(comment => comment.id === 823423);
console.log("[Array.prototype.findIndex()]\nLocate the position of comment #823423 and tell me what it is.");
console.log({commentIndex});
// delete the comment with the ID of 823423
console.log('[Array.prototype.findIndex()]\nFind and Delete comment #823423');
console.log("Original Array:");
console.table(comments);
comments.splice(commentIndex, 1);
console.log("New Array:");
console.table(comments);