import { Node } from "https://deno.land/x/deno2node@v1.10.0/src/deps.deno.ts";
Goes up the parents (ancestors) of the node while a condition is true. Throws 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. Throws if the initial parent doesn't match the condition.