How To Slice One Specific Element From Array In Angular

[Solved] How To Slice One Specific Element From Array In Angular | Perl - Code Explorer | yomemimo.com
Question : how to slice one specific element from array in angular

Answered by : prem-bhandari

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

Source : | Last Update : Wed, 08 Dec 21

Answers related to how to slice one specific element from array in angular

Code Explorer Popular Question For Perl