Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

std/data_structures/mod.ts>ascend

The Deno Standard Library
Go to Latest
function ascend
Re-export
import { ascend } from "https://deno.land/std@0.223.0/data_structures/mod.ts";

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

Returns

-1 | 0 | 1