Skip to main content
Module

x/ramda/mod.ts>complement

:ram: Practical functional Javascript
Latest
variable complement
import { complement } from "https://deno.land/x/ramda@v0.27.2/mod.ts";

Takes a function f and returns a function g such that if called with the same arguments when f returns a "truthy" value, g returns false and when f returns a "falsy" value g returns true.

R.complement may be applied to any functor