Skip to main content
Module

x/collections/mod.ts>descend

Collection data structures that are not standard built-in objects in JavaScript. This includes a vector (double-ended queue), binary heap (priority queue), binary search tree, and a red black tree.
Very Popular
Go to Latest
function descend
import { descend } from "https://deno.land/x/collections@v0.9.1/mod.ts";

Compares its two arguments for descending order using JavaScript's built in comparison operators. All undefined elements are sorted to the end.

Parameters

a: T | undefined
b: T | undefined