Skip to main content
Module

x/deno2node/src/deps.deno.ts>Node#getFirstChildIfKind

Compile your Deno project to run on Node.js.
Go to Latest
method Node.prototype.getFirstChildIfKind
import { Node } from "https://deno.land/x/deno2node@v1.11.0/src/deps.deno.ts";

Gets the first child if it matches the specified syntax kind.

Type Parameters

TKind extends SyntaxKind

Parameters

kind: TKind
  • Syntax kind.

Returns

KindToNodeMappings[TKind] | undefined