Skip to main content
Module

x/fun/boolean.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@v2.0.0-alpha.10/boolean.ts";

Test the equality of two booleans.

Examples

Example 1

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

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

Parameters

second: boolean

Returns

(first: boolean) => boolean