some
See also: iff iffElse every not
Return the or of a series of sync or async predicate functions.
ts
import { some } from 'feathers-utils/predicates';Type declaration
ts
/**
* Return the or of a series of sync or async predicate functions.
*
* @see https://utils.feathersjs.com/predicates/some.html
*/
export declare const some: <H extends HookContext = HookContext>(
...predicates: (PredicateFn<H> | undefined)[]
) => PredicateFn<H>| Argument | Type | Description |
|---|---|---|
| predicates | (PredicateFn<H> | undefined)[] |
