All Components

compileFilter

Creates a Predicate function for the specified CompositeFilterDescriptor.

import { compileFilter } from '@progress/kendo-data-query';

const data = [{ name: "Pork" }, { name: "Pepper" }, { name: "Beef" } ];
const predicate = compileFilter({ logic: "and", filters: [{ field: "name", operator: "startswith", value: "P" }] });
const result = data.filter(predicate);
In this article