Is there a way in Angular to easily remove specific items from an array based on comparison criteria? For example, if I have an array of people and want to remove certain individuals by their ID or another property. I'm looking for a solution that doesn't involve manually comparing each person in one array with every person in another array. Any suggestions?
Here is my attempted solution so far:
var filteredUsers = self.users;
angular.forEach(timekeepedUsers, function (user) {
filteredUsers.splice(user, 1);
});
return filteredUsers;