Sha256: 56e577b9f44f85d937e04c3f487f78aa8f8fb9292020f160bd371aab7f0743ce

Contents?: true

Size: 1.5 KB

Versions: 42

Compression:

Stored size: 1.5 KB

Contents

'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});

var _filter2 = require('./internal/filter');

var _filter3 = _interopRequireDefault(_filter2);

var _eachOfSeries = require('./eachOfSeries');

var _eachOfSeries2 = _interopRequireDefault(_eachOfSeries);

var _awaitify = require('./internal/awaitify');

var _awaitify2 = _interopRequireDefault(_awaitify);

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

/**
 * The same as [`filter`]{@link module:Collections.filter} but runs only a single async operation at a time.
 *
 * @name filterSeries
 * @static
 * @memberOf module:Collections
 * @method
 * @see [async.filter]{@link module:Collections.filter}
 * @alias selectSeries
 * @category Collection
 * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.
 * @param {Function} iteratee - A truth test to apply to each item in `coll`.
 * The `iteratee` is passed a `callback(err, truthValue)`, which must be called
 * with a boolean argument once it has completed. Invoked with (item, callback).
 * @param {Function} [callback] - A callback which is called after all the
 * `iteratee` functions have finished. Invoked with (err, results)
 * @returns {Promise} a promise, if no callback provided
 */
function filterSeries(coll, iteratee, callback) {
  return (0, _filter3.default)(_eachOfSeries2.default, coll, iteratee, callback);
}
exports.default = (0, _awaitify2.default)(filterSeries, 3);
module.exports = exports['default'];

Version data entries

42 entries across 21 versions & 1 rubygems

Version Path
appmap-0.72.2 ./node_modules/async/selectSeries.js
appmap-0.72.2 ./node_modules/async/filterSeries.js
appmap-0.72.1 ./node_modules/async/selectSeries.js
appmap-0.72.1 ./node_modules/async/filterSeries.js
appmap-0.72.0 ./node_modules/async/selectSeries.js
appmap-0.72.0 ./node_modules/async/filterSeries.js
appmap-0.71.0 ./node_modules/async/filterSeries.js
appmap-0.71.0 ./node_modules/async/selectSeries.js
appmap-0.70.2 ./node_modules/async/selectSeries.js
appmap-0.70.2 ./node_modules/async/filterSeries.js
appmap-0.70.1 ./node_modules/async/selectSeries.js
appmap-0.70.1 ./node_modules/async/filterSeries.js
appmap-0.70.0 ./node_modules/async/filterSeries.js
appmap-0.70.0 ./node_modules/async/selectSeries.js
appmap-0.69.0 ./node_modules/async/filterSeries.js
appmap-0.69.0 ./node_modules/async/selectSeries.js
appmap-0.68.2 ./node_modules/async/filterSeries.js
appmap-0.68.2 ./node_modules/async/selectSeries.js
appmap-0.68.1 ./node_modules/async/filterSeries.js
appmap-0.68.1 ./node_modules/async/selectSeries.js