aboutsummaryrefslogtreecommitdiff
path: root/node_modules/async/mapValues.js
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-11-03 01:33:53 +0100
committerFlorian Dold <florian.dold@gmail.com>2016-11-03 01:33:53 +0100
commitd1291f67551c58168af43698a359cb5ddfd266b0 (patch)
tree55a13ed29fe1915e3f42f1b1b7038dafa2e975a7 /node_modules/async/mapValues.js
parentd0a0695fb5d34996850723f7d4b1b59c3df909c2 (diff)
node_modules
Diffstat (limited to 'node_modules/async/mapValues.js')
-rw-r--r--node_modules/async/mapValues.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/node_modules/async/mapValues.js b/node_modules/async/mapValues.js
index 71051db61..6677637cf 100644
--- a/node_modules/async/mapValues.js
+++ b/node_modules/async/mapValues.js
@@ -38,8 +38,9 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
* called once it has completed with an error (which can be `null`) and a
* transformed value. Invoked with (value, key, callback).
* @param {Function} [callback] - A callback which is called when all `iteratee`
- * functions have finished, or an error occurs. Results is an array of the
- * transformed items from the `obj`. Invoked with (err, result).
+ * 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).
* @example
*
* async.mapValues({
@@ -49,7 +50,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
* }, function (file, key, callback) {
* fs.stat(file, callback);
* }, function(err, result) {
- * // results is now a map of stats for each file, e.g.
+ * // result is now a map of stats for each file, e.g.
* // {
* // f1: [stats for file1],
* // f2: [stats for file2],