import { toReduceArguments, ReduceArguments } from "./reduceify"; export function arrContains( arr: readonly ArrOf[], matcher: (e: ArrOf) => boolean ): boolean { for( const entry of arr ){ if( !matcher(entry) ){ continue; } return true; } return false; } export function contains( matcher: (e: ArrOf) => boolean ): ReduceArguments { return toReduceArguments(arrContains, matcher); }