Skip to main content
Module

x/structurae/sorted-array.ts>SortedArray.compare

Data structures for high-performance JavaScript applications.
Latest
method SortedArray.compare
import { SortedArray } from "https://deno.land/x/structurae@4.0.1/sorted-array.ts";

The default comparator.

Parameters

a: T

the first value

b: T

the second value

Returns

-1 | 0 | 1