Check if item matches a single token
const check = parse('Hello OR (World AND Bar)')const item = 'Hello'const matches = checkItem(check, item)console.log(matches) // true Copy
const check = parse('Hello OR (World AND Bar)')const item = 'Hello'const matches = checkItem(check, item)console.log(matches) // true
token to check
item to check
true if item matches token
Generated using TypeDoc
Check if item matches a single token
Example