I have an observableArray which I pass through the arrayFilter to return a filtered set. But I’m only doing it for 1 observable at the moment. How can I add a second observable:
return ko.utils.arrayFilter(self.complaints(), function (complaint) {
return complaint.RaisedBy == self.currentUser();
});
So I also want to filter based on the Code property of my complaint object:
return ko.utils.arrayFilter(self.complaints(), function (complaint) {
return complaint.Code == self.currentCode();
});
How can I combine them two?
have you tried: