import { AsyncReducer } from "https://deno.land/x/rimbu@0.13.0/common/mod.ts";
const { some } = AsyncReducer;
Returns a Reducer
that ouputs false as long as no input value satisfies given pred
, true otherwise.
Parameters
pred: (value: T, index: number) => MaybePromise<boolean>
- a function taking an input value and its index, and returning true if the value satisfies the predicate
Returns
AsyncReducer<T, boolean>