Yngvarr

Generation

generate functionFri, 18 Nov 2022

максимальное значение в многомерном массиве

function max(matrix) { return matrix.reduce((max, row) => { return Math.max(max, row.reduce((max, value) => Math.max(max, value), 0)); }, 0); } max([[1,2,3], [4,5,6], [7,8,9]]);

Javascript
Generate More

Questions about programming?Chat with your personal AI assistant