📜  如何以角度从数组中切片一个特定元素 - Javascript代码示例

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

代码示例1
Here AllBirthCertificateNumbers is an array and remove that element that has a similar BabyBirthId
            let value = this.AllBirthCertificateNumbers.find(a => a.BabyBirthDetailsId == this.BirthDetail.BabyBirthDetailsId);
            if (value) {
              let valueIndex = this.AllBirthCertificateNumbers.indexOf(value);
             this.AllBirthCertificateNumbers.splice(valueIndex, 1);