Skip to main content
Module

x/fresh/src/dev/deps.ts>Node#getParentIfKind

The next-gen web framework.
Extremely Popular
Go to Latest
method Node.prototype.getParentIfKind
import { Node } from "https://deno.land/x/fresh@1.2.0/src/dev/deps.ts";

Gets the parent if it's a certain syntax kind.

Type Parameters

TKind extends SyntaxKind

Returns

KindToNodeMappings[TKind] | undefined