root / HServer / 00.Server / 00.Program / node_modules / lodash / overEvery.js
이력 | 보기 | 이력해설 | 다운로드 (654 Bytes)
1 | 39 | HKM | var 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 | */
|
||
28 | var overEvery = createOver(arrayEvery);
|
||
29 | |||
30 | module.exports = overEvery; |