Module

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

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

Gets the last child by a condition.

Parameters

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

Returns

T | undefined

Gets the last child by a condition.

Parameters

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

Returns

Node | undefined