📜  clear angular formarray - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:53.935000             🧑  作者: Mango

代码示例1
const arr = new FormArray([
   new FormControl(),
   new FormControl()
]);
console.log(arr.length);  // 2

arr.clear();
console.log(arr.length);  // 0