Skip to main content
Module

x/easyts/types.ts>CompareCallback

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

How to compare element sizes

Examples

Example 1

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