Skip to main content
Module

x/fun/boolean.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/boolean.ts";

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