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

x/rambda/mod.ts>complement

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

Parameters

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

Returns

(...args: T) => boolean