How to find index of collection basis of condition

Dharmraj
Posted by Dharmraj under Angular category on | Points: 40 | Views : 2338
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

Login to post response