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

x/fun/mod.ts>comparable.number

A collection of algebraic data types, lenses, and schemables based on a light weight higher kinded type implementation. Written for deno.
Latest
variable comparable.number
import { comparable } from "https://deno.land/x/fun@v2.0.0/mod.ts";
const { number } = comparable;

A Comparable that compares number using strict equality.

Examples

Example 1

import { number } from "./comparable.ts";

const result1 = number.compare(1)(2); // false
const result2 = number.compare(1)(1); // true