Skip to main content
Module

x/fae/not.ts

A functional module for Deno inspired from Ramda.
Latest
File
// Copyright (c) 2020 Jozty. All rights reserved. MIT license.
import curryN from './utils/curry_n.ts';
// @typestype Not = <T>(fn: T) => boolean;
function _not<T>(a: T) { return !a;}
/** * Returns the not(complement) value of the given value */export const not: Not = curryN(1, _not);