Last change
on this file since fa375fe was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
1.3 KB
|
Rev | Line | |
---|
[6a3a178] | 1 | 'use strict';
|
---|
| 2 |
|
---|
| 3 | Object.defineProperty(exports, "__esModule", {
|
---|
| 4 | value: true
|
---|
| 5 | });
|
---|
| 6 |
|
---|
| 7 | var _detectLimit = require('./detectLimit');
|
---|
| 8 |
|
---|
| 9 | var _detectLimit2 = _interopRequireDefault(_detectLimit);
|
---|
| 10 |
|
---|
| 11 | var _doLimit = require('./internal/doLimit');
|
---|
| 12 |
|
---|
| 13 | var _doLimit2 = _interopRequireDefault(_doLimit);
|
---|
| 14 |
|
---|
| 15 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
---|
| 16 |
|
---|
| 17 | /**
|
---|
| 18 | * The same as [`detect`]{@link module:Collections.detect} but runs only a single async operation at a time.
|
---|
| 19 | *
|
---|
| 20 | * @name detectSeries
|
---|
| 21 | * @static
|
---|
| 22 | * @memberOf module:Collections
|
---|
| 23 | * @method
|
---|
| 24 | * @see [async.detect]{@link module:Collections.detect}
|
---|
| 25 | * @alias findSeries
|
---|
| 26 | * @category Collections
|
---|
| 27 | * @param {Array|Iterable|Object} coll - A collection to iterate over.
|
---|
| 28 | * @param {AsyncFunction} iteratee - A truth test to apply to each item in `coll`.
|
---|
| 29 | * The iteratee must complete with a boolean value as its result.
|
---|
| 30 | * Invoked with (item, callback).
|
---|
| 31 | * @param {Function} [callback] - A callback which is called as soon as any
|
---|
| 32 | * iteratee returns `true`, or after all the `iteratee` functions have finished.
|
---|
| 33 | * Result will be the first item in the array that passes the truth test
|
---|
| 34 | * (iteratee) or the value `undefined` if none passed. Invoked with
|
---|
| 35 | * (err, result).
|
---|
| 36 | */
|
---|
| 37 | exports.default = (0, _doLimit2.default)(_detectLimit2.default, 1);
|
---|
| 38 | module.exports = exports['default']; |
---|
Note:
See
TracBrowser
for help on using the repository browser.