Skip to main content
Module

x/rambda/immutable.d.ts>complement

Faster and smaller alternative to Ramda
Go to Latest
function complement
import { complement } from "https://deno.land/x/rambda@v7.0.1/immutable.d.ts";

It returns inverted version of origin function that accept input as argument.

The return value of inverted is the negative boolean value of origin(input).

Type Parameters

T extends readonly any[]

Parameters

predicate: (...args: T) => unknown

Returns

(...args: T) => boolean