Skip to main content
Module

x/fun/number.ts>equals

A collection of algebraic data types, lenses, and schemables based on a light weight higher kinded type implementation. Written for deno.
Go to Latest
function equals
import { equals } from "https://deno.land/x/fun@v.2.0.0-alpha.11/number.ts";

Compare two numbers and return true if they are equal.

Examples

Example 1

import * as N from "./number.ts";
import { pipe } from "./fn.ts";

const result1 = pipe(1, N.equals(2)); // false
const result2 = pipe(1, N.equals(1)); // true

Parameters

second: number

Returns

(first: number) => boolean