@jossmac/lil-libs
    Preparing search index...

    Function not

    • Inverts a predicate.

      • T extends unknown[]
      • R
      • predicate: (...args: T) => R

        Function whose result is inverted with !.

      A function with the same arity that returns !predicate(...args).

      const isEven = (n: number) => n % 2 === 0;
      const isOdd = not(isEven);

      isOdd(3); // true
      isOdd(4); // false