Can someone tell me why my code doesn’t work just on filteredArray

function filteredArray(arr, elem) {
 
  // change code below this line
  for ( let i = 0; i < arr.length; i++) {
    if (arr[i].indexOf(elem) !== (-1)) {
      arr.splice(i, 1);
    }          
  }
  // change code above this line
  return arr;
}

Can someone tell me why my code doesn’t work just on “filteredArray([[3, 2, 3], [1, 6, 3], [3, 13, 26], [19, 3, 9]], 3)”

Thank you so much, i understood and solved the challenge perfectly.