Skip to main content
Module

x/fun/boolean.ts>or

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

A curried form of logical Or.

Examples

Example 1

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

const result1 = or(true)(true); // true
const result2 = or(true)(false); // true
const result3 = or(false)(false); // false

Parameters

second: boolean

Returns

(first: boolean) => boolean