Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Aurelia filter value converter
export class FilterValueConverter {
toView(array, searchTerm, filterFunc) {
return array.filter((item) => {
let matches = searchTerm && searchTerm.length > 0 ? filterFunc(searchTerm,item): true;
return matches;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment