Inverts a Predicate with a logical NOT.
NOT
The inverted Predicate returns true if the Predicate returns false and vice versa.
true
false
const isOdd = not(isEven);const result = isOdd(-1);console.log(result); // true
const isNotEmpty = not(isEmpty);const result = isNotEmpty([]);console.log(result); // false
true if the Predicate returns false, otherwise false
the type of the Predicate
the Predicate to negate
Generated using TypeDoc
Inverts a Predicate with a logical
NOT.The inverted Predicate returns
trueif the Predicate returnsfalseand vice versa.Example
Example
Returns
trueif the Predicate returnsfalse, otherwisefalse