1 | import arrayEvery from './_arrayEvery.js';
|
2 | import createOver from './_createOver.js';
|
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 | */
|
28 | var overEvery = createOver(arrayEvery);
|
29 |
|
30 | export default overEvery;
|