Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Extremely Popular
Go to Latest
method Node.prototype.getDescendantAtStartWithWidth
import { Node } from "https://deno.land/x/fresh@1.1.3/src/dev/deps.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