import { ReduceArguments, toReduceArguments } from "./reduceify"; export function arrOr( arr: readonly ArrOf[], conditions: ((arr: readonly ArrOf[]) => boolean)[] ): boolean { return !!conditions.find(condition => condition(arr)); } export function or( conditions: ((arr: readonly ArrOf[]) => boolean)[] ): ReduceArguments { return toReduceArguments(arrOr, conditions); }