everyutil
Version:
A comprehensive library of lightweight, reusable utility functions for JavaScript and TypeScript, designed to streamline common programming tasks such as string manipulation, array processing, date handling, and more.
8 lines (7 loc) • 340 B
TypeScript
/**
* Combines multiple predicates into one using logical OR.
* @author @dailker
* @param predicates Array of predicate functions.
* @returns A predicate that returns true if any predicate returns true.
*/
export declare function disjoin<T extends any[]>(...predicates: Array<(...args: T) => boolean>): (...args: T) => boolean;