@newdash/newdash
Version:
javascript/typescript utility library
32 lines (31 loc) • 615 B
TypeScript
/**
* @ignore
*/
interface OverSomeFunction {
(...args: any[]): boolean;
}
/**
* Creates a function that checks if **any** of the `predicates` return
* truthy when invoked with the arguments it receives.
*
* @since 5.11.0
* @category Util
* @param predicates The predicates to check.
* @returns Returns the new function.
* @example
*
* ```js
* const func = overSome([Boolean, isFinite])
*
* func('1')
* // => true
*
* func(null)
* // => true
*
* func(NaN)
* // => false
* ```
*/
export declare function overSome(...iteratees: Array<Function>): OverSomeFunction;
export default overSome;