Yngvarr

Generation

generate functionWed, 16 Nov 2022

Math.max() в многомерном массиве

function max(arr) { var max = arr[0][0]; for (var i = 0; i < arr.length; i++) { for (var j = 0; j < arr[i].length; j++) { if (max < arr[i][j]) { max = arr[i][j]; } } } return max; }

Javascript
Generate More

Questions about programming?Chat with your personal AI assistant