Skip to main content

latest
Works with
It is unknown whether this package works with Node.js, Deno, Browsers, Cloudflare Workers, Bun
It is unknown whether this package works with Node.js
It is unknown whether this package works with Deno
It is unknown whether this package works with Browsers
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Bun
JSR Score58%
Published2 years ago (0.215.0)
function descend
descend<T>(
a: T,
b: T
): -1 | 0 | 1

Compares its two arguments for descending order using JavaScript's built in comparison operators.

Type Parameters

Parameters

Return Type

-1 | 0 | 1

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@std/data-structures

Import symbol

import { descend } from "@std/data-structures";
or

Import directly with a jsr specifier

import { descend } from "jsr:@std/data-structures";