Skip to main content
Module

x/fun/number.ts>compare

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

Compare two numbers and return true if they are equal.

Examples

Example 1

import * as N from "./number.ts";

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

Parameters

second: number

Returns

(first: number) => boolean