Versatile filter for AngularJS.