diff options
author | Hubert Argasinski <argasinski.hubert@gmail.com> | 2022-01-28 15:42:45 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-28 12:42:45 -0800 |
commit | 11f02cd097c05c6d44c369d83cd9b916c30af29d (patch) | |
tree | 3f02ed718cfd8cc48305128d72f80db0376bb575 /lib/detectSeries.js | |
parent | 139c99db40da6e811c55664ab872ab7d3c8c8c10 (diff) | |
download | async-11f02cd097c05c6d44c369d83cd9b916c30af29d.tar.gz |
docs: add missing return definitions for awaitable functions (#1789)
Diffstat (limited to 'lib/detectSeries.js')
-rw-r--r-- | lib/detectSeries.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/detectSeries.js b/lib/detectSeries.js index 18a7b17..4cc9d2b 100644 --- a/lib/detectSeries.js +++ b/lib/detectSeries.js @@ -21,7 +21,7 @@ import awaitify from './internal/awaitify.js' * Result will be the first item in the array that passes the truth test * (iteratee) or the value `undefined` if none passed. Invoked with * (err, result). - * @returns a Promise if no callback is passed + * @returns {Promise} a promise, if a callback is omitted */ function detectSeries(coll, iteratee, callback) { return createTester(bool => bool, (res, item) => item)(eachOfLimit(1), coll, iteratee, callback) |