Package: effect
Module: Predicate
Creates a predicate that returns true when neither predicate is true.
When to use
Use when you want to combine two Predicates with logical NOR semantics.
Details
Returns the negation of or.
Example (Checking NOR conditions)
import { Predicate } from "effect"
const neither = Predicate.nor(Predicate.isString, Predicate.isNumber)
console.log(neither(true))
See
ornotSignature
declare const nor: { <A>(that: Predicate<A>): (self: Predicate<A>) => Predicate<A>; <A>(self: Predicate<A>, that: Predicate<A>): Predicate<A>; }
Since v2.0.0