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

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

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