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

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

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

Gets the most specific descendant at the provided start text position with the specified width, or undefined if not found.

Parameters

start: number
  • Start text position to search for.
width: number
  • Text length of the node to search for.

Returns

Node | undefined