Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/fae/comparator.ts>comparator

A functional module for Deno inspired from Ramda.
Latest
function comparator
import { comparator } from "https://deno.land/x/fae@v1.1.1/comparator.ts";

Returns a comparator out of predicate which returns true when its first argument is less than the second, false otherwise

Parameters

predicate: Predicate2<T, T>

Returns

Comparator<T>