summaryrefslogtreecommitdiff
path: root/lib/groupBySeries.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/groupBySeries.js')
-rw-r--r--lib/groupBySeries.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/groupBySeries.js b/lib/groupBySeries.js
index a093d7f..ee673e1 100644
--- a/lib/groupBySeries.js
+++ b/lib/groupBySeries.js
@@ -1,4 +1,3 @@
-import doLimit from './internal/doLimit';
import groupByLimit from './groupByLimit';
/**
@@ -11,7 +10,6 @@ import groupByLimit from './groupByLimit';
* @see [async.groupBy]{@link module:Collections.groupBy}
* @category Collection
* @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.
- * @param {number} limit - The maximum number of async operations at a time.
* @param {AsyncFunction} iteratee - An async function to apply to each item in
* `coll`.
* The iteratee should complete with a `key` to group the value under.
@@ -19,5 +17,8 @@ import groupByLimit from './groupByLimit';
* @param {Function} [callback] - A callback which is called when all `iteratee`
* functions have finished, or an error occurs. Result is an `Object` whoses
* properties are arrays of values which returned the corresponding key.
+ * @returns {Promise} a promise, if no callback is passed
*/
-export default doLimit(groupByLimit, 1);
+export default function groupBySeries (coll, iteratee, callback) {
+ return groupByLimit(coll, 1, iteratee, callback)
+}