Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno2node/src/deps.deno.ts>Node.hasName

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

Gets if the node has a name.

Parameters

node: T
  • Node to check.

Returns

node is T & { getName(): string; getNameNode(): Node; }