/*
* @Author: [jsh]
* @Date: 2021-11-16 09:09:36
* @LastEditors: [jsh]
* @LastEditTime: 2021-11-16 09:30:37
* @Description:
*/
// js面试题
function fnArr(arr){
var newArr=[]
arr.forEach((item,index) => {
newArr.push(Math.max(...item))
});
return newArr;
}
const result=fnArr([
[4,5,1,3],
[13,27,18,26],
[32,35,37,39],
[1000,1001,857,1]
]);
console.log(result);