Time complexity of Return Largest Numbers in Arrays from basic algorithm scripting

function largestOfFour(arr) {
  let max = -Infinity;
  let arr2 = [];

  for(let i = 0; i < arr.length; i++) {
    for(let j = 0; j < arr.length; j++) {
      let temp = arr[i][j];
      temp > max ? (max = temp) : max;
    }
    arr2.push(max);
    max = -Infinity;
  }
  return arr2;
}