Inverts a predicate.
Function whose result is inverted with !.
!
A function with the same arity that returns !predicate(...args).
!predicate(...args)
const isEven = (n: number) => n % 2 === 0;const isOdd = not(isEven);isOdd(3); // trueisOdd(4); // false Copy
const isEven = (n: number) => n % 2 === 0;const isOdd = not(isEven);isOdd(3); // trueisOdd(4); // false
Inverts a predicate.