Projekt

Obecné

Profil

Stáhnout (1.41 KB) Statistiky
| Větev: | Revize:
1
'use strict';
2

    
3
Object.defineProperty(exports, "__esModule", {
4
  value: true
5
});
6

    
7
var _reject = require('./internal/reject');
8

    
9
var _reject2 = _interopRequireDefault(_reject);
10

    
11
var _doParallel = require('./internal/doParallel');
12

    
13
var _doParallel2 = _interopRequireDefault(_doParallel);
14

    
15
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16

    
17
/**
18
 * The opposite of [`filter`]{@link module:Collections.filter}. Removes values that pass an `async` truth test.
19
 *
20
 * @name reject
21
 * @static
22
 * @memberOf module:Collections
23
 * @method
24
 * @see [async.filter]{@link module:Collections.filter}
25
 * @category Collection
26
 * @param {Array|Iterable|Object} coll - A collection to iterate over.
27
 * @param {Function} iteratee - An async truth test to apply to each item in
28
 * `coll`.
29
 * The should complete with a boolean value as its `result`.
30
 * Invoked with (item, callback).
31
 * @param {Function} [callback] - A callback which is called after all the
32
 * `iteratee` functions have finished. Invoked with (err, results).
33
 * @example
34
 *
35
 * async.reject(['file1','file2','file3'], function(filePath, callback) {
36
 *     fs.access(filePath, function(err) {
37
 *         callback(null, !err)
38
 *     });
39
 * }, function(err, results) {
40
 *     // results now equals an array of missing files
41
 *     createFiles(results);
42
 * });
43
 */
44
exports.default = (0, _doParallel2.default)(_reject2.default);
45
module.exports = exports['default'];
(80-80/105)