I have a JS array of objects
const a = [
{name: karl, age: 53},
{name: fred, age: 34},
{name: annie, age: 12},
// ...
];
and I would like to extract the objects with the maximum age. I could perhaps sort the entire array and just pick the first element, but that seems somewhat wasteful.