UNPKG

654 BJavaScriptView Raw
1var arrayEvery = require('./_arrayEvery'),
2 createOver = require('./_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=[_.identity]]
13 * The predicates to check.
14 * @returns {Function} Returns the new function.
15 * @example
16 *
17 * var func = _.overEvery([Boolean, isFinite]);
18 *
19 * func('1');
20 * // => true
21 *
22 * func(null);
23 * // => false
24 *
25 * func(NaN);
26 * // => false
27 */
28var overEvery = createOver(arrayEvery);
29
30module.exports = overEvery;