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

Returns a function that is the logical complement of the given function, fn.

Use the logical not (!) operator on the result of calling fn with any supplied args.

type

(fn: Func) => unknown