returns the function that checks the passed item against the filter criteria
function | the function that checks the filter criteria |
const filter = $$("filter-view").getFilterFunction();
// "filter-view"` is the ID of Filter
$$("data-component").filter(obj => filter(obj));
// "data-component"` is the data component that must be filtered