Extremely Popular
Go to Latest
method Node.prototype.getPreviousSiblingOrThrow
import { Node } from "https://dotland.deno.dev/x/fresh@1.1.5/src/dev/deps.ts";

Gets the previous sibling or throws.

Parameters

optional
condition: (node: Node) => node is T
  • Optional condition for getting the previous sibling.
optional
message: string | (() => string)

Gets the previous sibling or throws.

Parameters

optional
condition: (node: Node) => boolean
  • Optional condition for getting the previous sibling.
optional
message: string | (() => string)