How to find index of collection basis of condition

Dharmraj
Posted by Dharmraj under Angular category on | Points: 40 | Views : 1327
Here I am going to explain how to find index of collection by any specific and multiple condition.

let index = this.data.findIndex(a => a.id == this.id && a.name == "abc");


You can use lambda express inside findIndex().

Comments or Responses

Posted by: Clydeanderson on: 12/23/2018 Level:Starter | Status: [Member] | Points: 10
I think I will tell my friend about your problem. You can contact him https://nerdymates.com/blog/bluebook-citation here. Don't be afraid to ask him for help.

Login to post response