Check function

Additionally, you can specify a check function to match with values.

import { check } from '@vincjo/datatables'

const filter = table.createFilter('last_name', check.startsWith)
last_name
Vint
Cerman
Bunn
Saurin
Granulette
Benley
Criag
Risom
Menendes
Gammill

Available check functions:

import { check } from '@vincjo/datatables'

Custom check function

const customCheck = (entry, value): boolean => {
    return entry != value
}

const filter = table.createFilter('last_name', customCheck)