Three ways you can find the largest number in an array using JavaScript
Sonya Moisset
49026

groups.reduce((agg, group) => {
agg.push(group.sort().pop());
return agg;
}, []);

This was my first thought.

Show your support

Clapping shows how much you appreciated Ben Saff’s story.