Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to slice one specific element from array in angular

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);

       
 
PREVIOUS NEXT
Tagged: #slice #specific #element #array #angular
ADD COMMENT
Topic
Name
5+5 =