Function testElement

  • Checks whether a node matches the description in options.

    Returns

    Whether the element matches the description in options.

    Parameters

    • options: TestElementOpts

      An object describing nodes to look for.

    • node: AnyNode

      The element to test.

    Returns boolean