Skip to main content
Module

x/structurae/binary-heap.ts>BinaryHeap.compare

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

The comparator function used by the heap.

Parameters

a: unknown

first value to compare

b: unknown

second value to compare

Returns

boolean

whether first value is less than the second