Function neither

  • Example

    import * as L from "flurp/logic";

    const f = L.neither(
    N.isPositive,
    N.isEven
    );
    f(-5); // true
    f(5); // false

    Type Parameters

    • T

    Parameters

    • condition1: ((x: T) => boolean)
        • (x: T): boolean
        • Parameters

          • x: T

          Returns boolean

    • condition2: ((x: T) => boolean)
        • (x: T): boolean
        • Parameters

          • x: T

          Returns boolean

    Returns ((a: T) => boolean)

      • (a: T): boolean
      • Parameters

        • a: T

        Returns boolean