Projekt

Obecné

Profil

Stáhnout (647 Bajtů) Statistiky
| Větev: | Revize:
1 3a515b92 cagy
var arraySome = require('./_arraySome'),
2
    createOver = require('./_createOver');
3
4
/**
5
 * Creates a function that checks if **any** 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 = _.overSome([Boolean, isFinite]);
18
 *
19
 * func('1');
20
 * // => true
21
 *
22
 * func(null);
23
 * // => true
24
 *
25
 * func(NaN);
26
 * // => false
27
 */
28
var overSome = createOver(arraySome);
29
30
module.exports = overSome;