diff options
Diffstat (limited to 'lib/detectLimit.js')
-rw-r--r-- | lib/detectLimit.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/detectLimit.js b/lib/detectLimit.js index 8ba89a0..0765fe8 100644 --- a/lib/detectLimit.js +++ b/lib/detectLimit.js @@ -23,7 +23,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 detectLimit(coll, limit, iteratee, callback) { return createTester(bool => bool, (res, item) => item)(eachOfLimit(limit), coll, iteratee, callback) |