plainfp - v0.1.0
    Preparing search index...

    Function and

    • Combine predicates with logical AND. Short-circuits on the first false.

      Type Parameters

      • T

      Parameters

      Returns Predicate<T>

      const isAdultUser = and<User>(
      (u) => u.age >= 18,
      (u) => u.verified,
      )
      isAdultUser({ age: 21, verified: true }) // true