Filter data based on parsed query
const data = ['Hello', 'World', 'Foo', 'Bar']const parsed = parse('Hello OR (World AND Bar)')const filtered = filter(parsed, data)console.log(filtered) // ['Hello', 'World', 'Bar'] Copy
const data = ['Hello', 'World', 'Foo', 'Bar']const parsed = parse('Hello OR (World AND Bar)')const filtered = filter(parsed, data)console.log(filtered) // ['Hello', 'World', 'Bar']
parsed query
data to filter
Optional
map function to apply to data before filtering
filtered data
Generated using TypeDoc
Filter data based on parsed query
Example