UNPKG

625 BJavaScriptView Raw
1import arrayEvery from './_arrayEvery';
2import createOver from './_createOver';
3
4/**
5 * Creates a function that checks if **all** of the `predicates` return
6 * truthy when invoked with the arguments it receives.
7 *
8 * @static
9 * @memberOf _
10 * @since 4.0.0
11 * @category Util
12 * @param {...(Function|Function[])} predicates The predicates to check.
13 * @returns {Function} Returns the new function.
14 * @example
15 *
16 * var func = _.overEvery(Boolean, isFinite);
17 *
18 * func('1');
19 * // => true
20 *
21 * func(null);
22 * // => false
23 *
24 * func(NaN);
25 * // => false
26 */
27var overEvery = createOver(arrayEvery);
28
29export default overEvery;