Skip to main content
Module

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

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

Returns if the node is the specified kind.

This is a type guard.

Type Parameters

TKind extends SyntaxKind

Parameters

kind: TKind
  • Syntax kind.

Returns

this is KindToNodeMappings[TKind]