Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

DomUtils.prevElementSibling

Returns the previous element sibling of a node.

function prevElementSibling(elem: Node): Element | null;
§
prevElementSibling(elem: Node): Element | null
[src]

§Parameters

§
elem: Node
[src]

The element to get the previous sibling of.

§Return Type

§

elem's previous sibling that is a tag.