- negate<Item, Predicated>(predicate: Predicate<Item, Predicated>): Single<Item> extends Single<Predicated> ? Unary<Item, boolean> : Predicate<Item, Exclude<Item, Predicated>>
-
Parameters
-
predicate: Predicate<Item, Predicated>
Returns Single<Item> extends Single<Predicated> ? Unary<Item, boolean> : Predicate<Item, Exclude<Item, Predicated>>
Takes a function and returns a copy with negated output.
Example
Returns
Source function with negated output.