Show:

Class of query language adapter that translates query object into JS function which filters native JS array of objects by specified logic.

const data = [
  { Name: 'A', Surname: 'X', Age: 10 },
  { Name: 'B', Surname: 'Y', Age: 11 },
  { Name: 'B', Surname: 'Z', Age: 12 }
];

let adapter = new JSAdapter(moment);
let builder = new QueryBuilder(store, 'AnyUnknownModel').where('Name', FilterOperator.Eq, 'B');
let filter = adapter.buildFunc(builder.build());

let result = filter(data); // Y and Z

All filters uses short circuit logic (wiki).

Item Index