Some array methods return one combined answer instead of a new array. This lesson uses reduce(), some(), and every() together to show three different kinds of summary.
const total = [5, 10, 15].reduce((sum, value) => sum + value, 0);
const hasAdult = [12, 17, 21].some((age) => age >= 18);
const allPositive = [1, 2, 3].every((n) => n > 0);
Use reduce() to total the numbers into one value.