I have a multidimensional array that has name and integer values in them. I need to be able to compare the integer value in each array in the multidimensional array. how can I compare and return that array?
var totals = [
['john', 'test', 45],
['bob', 'tester', 75]
];
How can I loop over the arrays in the "totals" array and return the one with the largest integer value?