Skip to main content
Module

x/fun/mod.ts>number.compare

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

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