Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/easyts/types.ts>CompareCallback

js library written with ts, use select and chan like golang in js.
Latest
type alias CompareCallback
import { type CompareCallback } from "https://deno.land/x/easyts@0.1.3/types.ts";

How to compare element sizes

Examples

Example 1

return l == r ? 0 : ( l < r ? -1 : 1)
definition: (l: T, r: T) => number