import { Node } from "https://deno.land/x/deno2node@v1.11.0/src/deps.deno.ts";
Gets the parent if it matches a certain condition or throws.
Parameters
condition: (parent: Node | undefined, node: Node) => parent is T
x/deno2node/src/deps.deno.ts>Node#getParentIfOrThrow
import { Node } from "https://deno.land/x/deno2node@v1.11.0/src/deps.deno.ts";
Gets the parent if it matches a certain condition or throws.