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

x/fun/mod.ts>eq.boolean

A collection of algebraic data types, lenses, and schemables based on a light weight higher kinded type implementation. Written for deno.
Go to Latest
variable eq.boolean
import { eq } from "https://deno.land/x/fun@v.2.0.0-alpha.11/mod.ts";
const { boolean } = eq;

A Eq that compares booleans using strict equality.

Examples

Example 1

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

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

type

Eq<boolean>