summaryrefslogtreecommitdiff
path: root/lib/mapValuesSeries.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mapValuesSeries.js')
-rw-r--r--lib/mapValuesSeries.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/mapValuesSeries.js b/lib/mapValuesSeries.js
index ab0b8f8..59e4b1a 100644
--- a/lib/mapValuesSeries.js
+++ b/lib/mapValuesSeries.js
@@ -1,5 +1,4 @@
import mapValuesLimit from './mapValuesLimit';
-import doLimit from './internal/doLimit';
/**
* The same as [`mapValues`]{@link module:Collections.mapValues} but runs only a single async operation at a time.
@@ -19,5 +18,8 @@ import doLimit from './internal/doLimit';
* functions have finished, or an error occurs. `result` is a new object consisting
* of each key from `obj`, with each transformed value on the right-hand side.
* Invoked with (err, result).
+ * @returns {Promise} a promise, if no callback is passed
*/
-export default doLimit(mapValuesLimit, 1);
+export default function mapValuesSeries(obj, iteratee, callback) {
+ return mapValuesLimit(obj, 1, iteratee, callback)
+}