Module

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

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

Gets the last child by a condition or throws.

Parameters

optional
condition: (node: Node) => node is T
  • Condition.
optional
message: string | (() => string)

Gets the last child by a condition or throws.

Parameters

optional
condition: (node: Node) => boolean
  • Condition.
optional
message: string | (() => string)