UNPKG

@newdash/newdash

Version:

javascript/typescript utility library

32 lines (31 loc) 621 B
/** * @ignore */ interface OverEveryFunction { (...args: any[]): boolean; } /** * Creates a function that checks if **all** 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 = overEvery([Boolean, isFinite]) * * func('1') * // => true * * func(null) * // => false * * func(NaN) * // => false * ``` */ export declare function overEvery(...iteratees: Array<Function>): OverEveryFunction; export default overEvery;