Posts by thiagobraga • 148 points
1 post
-
3
votes2
answers71
viewsA: filter object array based on string array
Use the filter() The indexOf() returns -1 if the element you are looking for does not exist in the array. Then you can use it together with the filter() to fetch an array of Ids in an array of…