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

x/fun/mod.ts>number.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 number.equals
import { number } from "https://deno.land/x/fun@v.2.0.0-alpha.11/mod.ts";
const { equals } = number;

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