From d1291f67551c58168af43698a359cb5ddfd266b0 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 3 Nov 2016 01:33:53 +0100 Subject: node_modules --- node_modules/async/mapValues.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'node_modules/async/mapValues.js') 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], -- cgit v1.2.3