I would like to compare the values in a multi-dimensional array. i.e [[1, 2], [3,10], [3, 3]] Should return me 13 as it is the highest total of the given array.
II have managed to add the individual elements.
const arr = [3, 10];
const sum = arr.reduce((accumulator, value) => {
return accumulator + value;
}, 0);
console.log(sum); // 13