Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

not

import { not } from "https://raw.githubusercontent.com/baetheus/fun/main/predicate.ts";

Negates the result of an existing Predicate.

@example
import { not } from "./predicate.ts";

const isPositive = (n: number) => n > 0;
const isZeroOrNegative = not(isPositive);

const result1 = isZeroOrNegative(1); // false
const result2 = isZeroOrNegative(0); // true
const result3 = isZeroOrNegative(-1); // true
function not<A>(predicate: Predicate<A>): Predicate<A>;
§
not<A>(predicate: Predicate<A>): Predicate<A>
[src]

§Type Parameters

§Parameters

§
predicate: Predicate<A>
[src]

§Return Type