function fnArr(arr) { var newArr = [];arr.forEach((item,index) => {newArr.push(Math.max(...item))})return newArr}console.log(fnArr([[...