JSFiddle - React, Tailwind, and code Playground
by zerkms
JavaScript
var arr = [[1, 5], [4, 7], [3, 8], [2, 3],
[12, 4], [6, 6], [4, 1], [3, 2],
[8, 14]];
console.log(Math.max.apply(Math, arr.map(function(i) {
return i[0];
})));
by zerkms
var arr = [[1, 5], [4, 7], [3, 8], [2, 3],
[12, 4], [6, 6], [4, 1], [3, 2],
[8, 14]];
console.log(Math.max.apply(Math, arr.map(function(i) {
return i[0];
})));