FormArray has methods like setValue() and patchValue().
Both methods set the value of a formcontrol in a formgroup, but there is a difference. In simple terms, they update the form controls.
setValue works for a whole group i.e., setValue updates all the formcontrols in the formgroup.
patchValue patches for a part i.e., patchValue method only update the specified formcontrol in the formgroup.
setValue will throw an error if any of the control in the method does not match it will throw an error.