JSFiddle - React, Tailwind, and code Playground
JavaScript
var totals = [
['john', 'test', 45],
['john', 'test', 46],
['john', 'test', 42],
['john', 'test', 41]
];
var biggest = totals.reduce((a, b) => a[2] > b[2] ? a : b);
console.log(biggest);