I have a filter on the JS side of angular.
$filter('filter')($scope.ArrayofUserObjects, {Active: true, ID: passedInValue});
NOTE - my array is is an array of objects
Let's say my array has 50 active users and 10 inactive users.
The passedInValue
is an inactive user's ID. This filter at present will return 0
because each parameter of the array in essence is &&
together.
Question ---
I would like to alter this filter so the objects are ||
together, which means the resulting filter would return 51
Is this possible?