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

DomUtils.uniqueSort

Sort an array of nodes based on their relative position in the document and remove any duplicate nodes. If the array contains nodes that do not belong to the same document, sort order is unspecified.

function uniqueSort<T extends Node>(nodes: T[]): T[];
§
uniqueSort<T extends Node>(nodes: T[]): T[]
[src]

§Type Parameters

§
T extends Node
[src]

§Parameters

§
nodes: T[]
[src]

Array of DOM nodes.

§Return Type

§

Collection of unique nodes, sorted in document order.