import { Node } from "https://deno.land/x/fresh@1.1.3/src/dev/deps.ts";
Goes up the parents (ancestors) of the node while a condition is true. Returns undefined if the initial parent doesn't match the condition.
Type Parameters
T extends Node
Goes up the parents (ancestors) of the node while a condition is true. Returns undefined if the initial parent doesn't match the condition.