Skip to main content
variable either
import { either } from "https://deno.land/x/30_seconds_of_typescript@v1.0.1/util.ts";

Returns true if at least one function returns true for a given set of arguments, false otherwise.

Use the logical or (||) operator on the result of calling the two functions with the supplied args.

type

(f: Function, g: Function) => unknown