t×tecexpressby TeKOcloud
DEv0.7.1
API & types / VUE

txMatches.

Synchronously tests a record against a filter; text comparisons ignore case.

Parameters: item = record to test, f = TxFilter. Returns boolean without modifying the record. Getter errors propagate.

ts
function txMatches<T>(item: T, f: TxFilter<T>): boolean
ts
import { txMatches } from '@tekocloud.de/tecexpress'
console.log(txMatches({ age: 20 }, { selector: 'age', operator: '>=', value: 18 })) // true