Skip to main content
Module

x/ts_morph/mod.ts>Node#getChildAtIndexIfKind

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
method Node.prototype.getChildAtIndexIfKind
import { Node } from "https://deno.land/x/ts_morph@15.1.0/mod.ts";

Gets the child at the specified index if it's the specified kind or returns undefined.

Parameters

index: number
  • Child index to get.
kind: TKind
  • Expected kind.