Function checkItem

  • Check if item matches a single token

    Example

    const check = parse('Hello OR (World AND Bar)')
    const item = 'Hello'
    const matches = checkItem(check, item)
    console.log(matches) // true

    Parameters

    • check: ParserToken

      token to check

    • item: string

      item to check

    Returns boolean

    true if item matches token

Generated using TypeDoc