Function testElement

  • Checks whether a node matches the description in options.

    Parameters

    • options: TestElementOpts

      An object describing nodes to look for.

    • node: AnyNode

      The element to test.

    Returns boolean

    Whether the element matches the description in options.