Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/rambda/immutable.d.ts>complement

Faster and smaller alternative to Ramda
Latest
function complement
import { complement } from "https://deno.land/x/rambda@9.4.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