import { Node } from "https://dotland.deno.dev/x/fresh@1.1.5/src/dev/deps.ts";
Gets the first ancestor that matches the provided condition or throws if not found.
Type Parameters
T extends Node
Gets the first ancestor that matches the provided condition or throws if not found.