Does the checked setting for input not work?

jquery removing checked doesn"t work, whether through attr or prop, it can only be set through dom. What"s going on?

let arr = $("input[name="courseGeneralType"]");
      if(arr.length>0){
        for(let i=0;i<arr.length;iPP){
          // $(arr[i]).removeAttr("checked")
          // $(arr[i]).removeProp("checked")
          arr[i].checked=false;
        }
      }
Mar.23,2021

arr.eq(i).prop('checked',false);

arr[i].prop('checked', false);
Menu