Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/fun/mod.ts>boolean.compare

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

Test the equality of two booleans.

Examples

Example 1

import { compare } from "./boolean.ts";

const result1 = compare(true)(false); // false
const result2 = compare(true)(true); // true

Parameters

second: boolean

Returns

(first: boolean) => boolean